Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd April 2010, 05:23
declanmullen declanmullen is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache proxy restrictions config?

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
Reply With Quote
Sponsored Links
  #2  
Old 2nd April 2010, 08:49
declanmullen declanmullen is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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 ?
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with suexec gobokster Installation/Configuration 7 7th May 2009 14:33
Mod_Perl Configuration Issue szise Installation/Configuration 4 28th November 2008 13:41
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 19:37
ISPConfig 2.2.14 released till General 48 20th July 2007 00:46
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 01:09


All times are GMT +2. The time now is 15:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.