Re: [squid-users] Squid

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 19 Jun 2008 00:29:21 +0200

On ons, 2008-06-18 at 10:05 -0700, aot2002 wrote:
> I have squid setup using a reverse proxy on port listening 21080
> squid redirects and gets info from my webserver to 21080 back to the user
> everything works except when i get a 302 redirect
>
> if i enter in the webbrowser http://MYIPADDRESS:21080/test/home.php it works
> fine
> http://MYIPADDRESS:21080/test/ it gets a 302 and redirects to an internal ip
> and internal port 80 which that server doesnt even use? thats wierd

That's sent by your web server, not Squid.. but may be based on Host
header information sent by Squid based on the defined defaultsite..

> http_port 21080 defaultsite=10.108.50.37

The defaultsite should include the port number for best operation, and
additionally should be the external name the users connect to, not the
internal server address. The internal server address is defined by
cache_peer.

Regards
Henrik

Received on Wed Jun 18 2008 - 22:29:26 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 19 2008 - 12:00:05 MDT