You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stig Sandbeck Mathisen <ss...@fnord.no> on 2004/06/28 16:28:56 UTC

[users@httpd] Reverse proxy exceptions

I have a problem making exceptions inside a location proxied to
another location.

I use the following today

<VirtualHost <mumble>>
  ProxyPass / http://<zope server>
  ProxyPassReverse / http://<zope server>
</VirtualHost>

If I add

ScriptAlias     /stats  /usr/lib/cgi-bin/awstats

..this has no effect, ScriptAlias seems to be ignored inside a
ProxyPass'ed location.

Is there any way to except /stats from the ProxyPass, or make the
ScriptAlias take precedence before ProxyPass?


-- 
Stig Sandbeck Mathisen <ss...@fnord.no> -+- http://fnord.no
  Trust the Computer, the Computer is your Friend


---------------------------------------------------------------------
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


Re: [users@httpd] Reverse proxy exceptions

Posted by Joshua Slive <js...@gmail.com>.
On Mon, 28 Jun 2004 16:28:56 +0200, Stig Sandbeck Mathisen <ss...@fnord.no> wrote:
> Is there any way to except /stats from the ProxyPass, or make the
> ScriptAlias take precedence before ProxyPass?

Yes.  As shown here:
http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypass
you can use
ProxyPass /stats !
(Be sure to list it BEFORE the existing ProxyPass.)

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