Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache as Proxy Server

Status
Not open for further replies.

TheBublitz

IS-IT--Management
Apr 11, 2005
86
0
0
US
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 *


Billy Bublitz
Integrity Windows and Doors
 
Well I have squid installed also.

But im having problems with that also.

Eveything is up and running but....

If I type
I get an error

While trying to retrieve the URL:
The following error was encountered:

Unable to determine IP address from host name for web
The dnsserver returned:

Server Failure: The name server was unable to process this query.
This means that:

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.

BUT if I type the full name it works just fine even tho on command prompt of server ping web.

ping web

Pinging web.domain.com [10.56.20.45] with 32 bytes of data:

Reply from 10.56.20.45: bytes=32 time=11ms TTL=127
Reply from 10.56.20.45: bytes=32 time=13ms TTL=127
Reply from 10.56.20.45: bytes=32 time=10ms TTL=128
Reply from 10.56.20.45: bytes=32 time=10ms TTL=128

Ping statistics for 10.56.20.45:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 13ms, Average = 11ms

So I know dns is working because it converting the web to the web.domain.com I also checked the host dns table and the right host entry is added.

So I seem to be screwed either way.

Not using the squid proxy works just fine.

Billy Bublitz
Integrity Windows and Doors
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top