Restrict access to Locations

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-09-2008
Richard Wilkinson
 
Posts: n/a
Default Restrict access to Locations

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0