- Posts: 301
- Thank you received: 3
Apache as Proxy Server
18 years 1 week ago #18102
by Bublitz
The Bublitz
Systems Admin
Hospice of the Red River Valley
Apache as Proxy Server was created by Bublitz
I wan't to use apache as a proxy server. I have it working at the moment.
The way I have it setup it will block ALL internet requests. What I want to add then is a couple sites that are ok i.e intranet sites. I can't find a statment to use along site "ProxyBlock *" to allow some sites. Its easier this way then to specify all domains on the internet lol.
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from (lan)
</Proxy>
</IfModule>
ProxyBlock *
The way I have it setup it will block ALL internet requests. What I want to add then is a couple sites that are ok i.e intranet sites. I can't find a statment to use along site "ProxyBlock *" to allow some sites. Its easier this way then to specify all domains on the internet lol.
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from (lan)
</Proxy>
</IfModule>
ProxyBlock *
The Bublitz
Systems Admin
Hospice of the Red River Valley
- ELECTRONICS
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
18 years 6 days ago #18141
by ELECTRONICS
Replied by ELECTRONICS on topic Re: Apache as Proxy Server
Concept rocks man,
Explain in detail let me try it, since I am not an expert in this.
DIL.....................!
Explain in detail let me try it, since I am not an expert in this.
DIL.....................!
18 years 3 days ago #18237
by Bublitz
The Bublitz
Systems Admin
Hospice of the Red River Valley
Replied by Bublitz on topic Re: Apache as Proxy Server
Add these lines in you apache config and apache works as a proxy server. Except the last line that will block all url requests.
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from (lan)
</Proxy>
</IfModule>
ProxyBlock *
It actually works. Only problem is not much control on acls for urls like squid. So it won't work for me
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from (lan)
</Proxy>
</IfModule>
ProxyBlock *
It actually works. Only problem is not much control on acls for urls like squid. So it won't work for me
The Bublitz
Systems Admin
Hospice of the Red River Valley
Time to create page: 0.117 seconds