httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joost de Heer" <>
Subject [users@httpd] Re: Excluding a directory from mod_proxy (apache 1.3)
Date Wed, 17 Aug 2005 08:07:22 GMT
Matt Blasinski said:
> Hi,
> I'm using mod_proxy to proxy the document root to another port on the
> same machine with Apache 1.3.
>      ProxyPass / http://localhost:180/
>      ProxyPassReverse / http://localhost:180/
> This works fine and as expected, you get the page at that port/location
> rather than it attempting to access this URL through port 80.  I would
> like to exclude a subdirectory from being proxied, that is, to use /sub
> on the original host and port instead of port 180.

Use mod_rewrite for this.

I have the following running without any problems:

RewriteCond %{REQUEST_URI} !^/sub/.* [NC]
[Possibly some more rewritecond's]
RewriteRule /(.*) http://localhost:180/$1 [P,L]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message