apache, proxypass and <directory proxy:*>

apache, proxypass and <directory proxy:*>

Post by Luke Stepniowsk » Tue, 22 Feb 2000 04:00:00



Hello,
I'm trying to setup an Apache reverse proxy using http authentication on the
proxy server. Everything is working, but when I try to use the <direcory proxy:>
directive to define ACLs based on the URL path the syntax does not take.

What I need is to define seperate http auth ACLS for the proxy path /app1 and
/app2.

--
<IfModule mod_proxy.c>
ProxyRequests On

<Directory proxy:*> (proxy:/app1 does not work)
order allow,deny
allow from all
deny from none

AuthName "gateway signon"
AuthType Basic
AuthUserFile /usr/local/apache-auth/conf/.htaccess
Auth_MySQL_Encryption_Types Plaintext
require group tpa_noc
</Directory>

ProxyPass /app1 http://server1.com
ProxyPassReverse /app1 http://server1.com

ProxyPass /app2 http://server2.com
ProxyPassReverse /app2 http://server2.com
--


-
Luke Stepniowski

 
 
 

apache, proxypass and <directory proxy:*>

Post by Thomas Bind » Wed, 23 Feb 2000 04:00:00


Hi!



Quote:> What I need is to define seperate http auth ACLS for the proxy path
> /app1 and /app2.

Proxy: in <Directory> tags does of course refer to proxy request URLs,
i.e. you'd have to use

<Directory proxy:http://server1.com>
[...]
</Directory>

and

<Directory proxy:http://server1.com>
[...]
</Directory>

for your idea to work.

Ciao

Thomas

--