You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Declan Mullen <de...@jadplace.com> on 2010/04/03 11:12:52 UTC

[users@httpd] proxy restrictions/security config ?

Hi

I'm new to Apache configurations. Could you please suggest how I might 
achieve the below proxy restrictions within Apache 2.2, thanks.

I need the apache forwarding proxy's restrictions to only allow :
  - Any client computers to be able to access web server "srv-a".
  - A client computer "client-b" to be able to access any web servers.

As such, the proxy's restrictions need to prevent:
  - Any other client computers (ie other than "client-b") from accessing 
other web servers (ie other than "srv-a").

I've tried the below and it seems to work, but please do suggest any 
better configurations, thanks.

  ProxyRequests On
  ProxyVia Off

  <Proxy srv-a>
     Order deny,allow
    Deny from all
    Allow from all
  </Proxy>

  <ProxyMatch ^(?!srv-a)>
     Order deny,allow
    Deny from all
    Allow from client-b
  </ProxyMatch>

Thanks,
Declan




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