Apache proxy restrictions config?

Discussion in 'Server Operation' started by declanmullen, Apr 2, 2010.

  1. declanmullen

    declanmullen New Member

    Hi

    I'm new to Apache proxy configurations. Could you suggest how I might achieve the below proxy restrictions within Apache 2.2, or could you point me to any doco on the subject (apart from the Apache manuals, as I've consulted them already), 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").

    So I tried the following , but the config seems to prevent "srv-a" from being accessed by all client computers except client-b".


    ProxyRequests On
    ProxyVia Off

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

    <Proxy *>
    order deny,allow
    Deny from all
    Allow from client-b
    </Proxy>


    Any suggestions on how I should be configuring the apache proxy?

    Regards,
    Declan
     
  2. declanmullen

    declanmullen New Member

    However the below seems to give me what I want:


    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>


    Any other suggestions ?
     

Share This Page