You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Robert Granvin <Ro...@metrostate.edu> on 2005/02/03 18:21:45 UTC

[users@httpd] Problem with mod_dir and mod_proxy (Apache 2.0.52)

Spam detection software, running on the system "kinsei.thewillards.local", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
postmaster@thewillards.co.uk for details.

Content preview:  Spam detection software, running on the system
  "kinsei.thewillards.local", has identified this incoming email as
  possible spam. The original message has been attached to this so you
  can view it (if it isn't spam) or label similar future email. If you
  have any questions, see postmaster@thewillards.co.uk for details. [...] 

Content analysis details:   (2.2 points, 1.9 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 1.0 LOCAL_DOLLAR           BODY: Has dollar sign
 1.2 LOCAL_HTTP             BODY: Has web link
-0.0 AWL                    AWL: From: address is in the auto white-list

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.


Re: [users@httpd] Problem with mod_dir and mod_proxy (Apache 2.0.52)

Posted by Joshua Slive <js...@gmail.com>.
On Thu, 03 Feb 2005 11:21:45 -0600, Robert Granvin
<Ro...@metrostate.edu> wrote:
> This works great as long as the actual file is in the URL (i.e.,
> http://www.exampledomain.org/directory/index.cfm).  However, if
> mod_dir has to complete the URL by using a hit from DirectoryIndex
> (i.e., assume the above example was instead submitted as:
> http://www.exampledomain.org/directory/), then it will not proxy,
> instead hitting the local server.
> 
> The above bug was supposed to fix this behavior, but we're not able to
> cause it to happen as expected.
> 
> The proxy configuration in httpd.conf is currently:
> 
>     ProxyRequests Off
>     ProxyVia On
>     <Proxy *>
>             Order deny,allow
>             Allow from all
>     </Proxy>
>     ReWriteEngine on
>     RewriteRule (.*)\.cfm$ /cfm/$1.cfm [P]
>     ProxyPass /cfm http://appserver.exampledomain.org
>     ProxyPassReverse /cfm http://appserver.exampledomain.org

I'm note sure of the exact problem, but your configuration above is
not good.  You are doing a double proxy: once back to the same server
(to get under the /cfm directory) and then again to the remote server.
 I don't think that is what you want.  You should probably change the
RewriteRule to
RewriteRule (.*)\.cfm$ http://appserver.exampledomain.org/$1.cfm [P]

The other thing to check is to make sure you are not facing a
trailing-slash problem.  In other words, are you sure you are
specifying the slash on the end of the directory name when making the
request?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] DocumentRoot doesn't like my network!

Posted by Eve Atley <ea...@wowcorp.com>.
I've got 2 versions of Apache installed on my Windoze development machine,
but 2.0.52 running by default. The other version, 1.3.xx, accepts my
document root which is located on a network, ie. "F:/Web Sites"...but for
some reason, the same doesn't play nicely with 2.0.52 - by not playing
nicely, I mean no page found when browsing to localhost/somewebsite. I've
tried adding both 

	DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/sites"
(with sites being an alias under the htdocs directory)

...and...

	DocumentRoot "F:\Web Sites"

Any ideas why this might be, and how to fix? Am I maybe doing something
incorrectly?

Thanks,
Eve



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org