Re: [squid-users] redirect problem

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 21 Sep 2001 23:39:57 +0200

Well.. it should change to http://web.testing.com:1080/link/

this is Apache adding the missing slash from the directory request.

To work around this issue I always recommend having backend servers run
on the same port number as the "official" service. To do this on the
same machine Bind Squid to the official address and Apache to 127.0.0.1.

If you cannot do this you can try one of these two approaches:
  a) Find out a way to convince the web server to return the "correct"
port number when redirecting the user

  b) Use the "Location rewrite" feature of the rproxy branch
<http://squid.sourceforge.net/rproxy/>. This enables you to have Squid
rewrite the Location before it reaches the client (i.e. similar to the
ProxyPassReverse directive in Apache).

Regards
Henrik Nordstrom
Squid Hacker
MARA Systems AB, Sweden

TomC wrote:
>
> hi all,
> i have a redirect problem.
> i have set a squid with port 80 and apache port 1080 on the same machine
> ( web.testing.com )
> in squdi.conf:
> httpd_accel_host web.testing.com
> httpd_accel_port 1080
> redirect_rewrites_host_header off
>
> then, when i access http://web.testing.com, no problem
> but when i access a link http://web.testing.com/link, the browser
> change to http://web.testing.com:1080/link.
> How can i fix?
>
> Thanks
Received on Fri Sep 21 2001 - 16:12:45 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:27 MST