This is a discussion on Restrict access to Locations within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I'm using mod_proxy_balancer in a virtual host. I want to have the balancer status and server status available, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm using mod_proxy_balancer in a virtual host. I want to have the balancer status and server status available, but I want to restrict access to it. What I have is: #stop status being forwarded to my proxyed host ProxyPass /status1 ! <Location /status1> SetHandler server-status AuthUserFile /etc/apache2/.htpasswd AuthName EnterPassword AuthType Basic require user myuser </Location> ProxyPass /balancer1 ! <Location /balancer1> SetHandler balancer-manager AuthUserFile /etc/apache2/.htpasswd AuthName "Load Balancer config" AuthType Basic Require user thinkingcap </Location> .... ProxyPass / balancer://mybalancer #balancer config here which all works fine but all I get is an access denied message in the logs, I dont get the username/password popup that I would expect to get. It works if I put a 'Allow from all' instead of the auth user stuff, but I dont want it to be available to all. Any Ideas? Thanks in advance, Richard |
| Thread Tools | |
| Display Modes | |
|
|