Read the descriptions of httpd_accel_host and
httpd_accel_uses_host_header again.
Mauro.Del.Giudice@esa.int wrote:
>
> Hi all,
> I'm trying to use the redirector "jesred" found in the SQUID site to configure a
> virtual accelerator for two different web servers.
> my host can be reached with 2 different aliases, briefly virtual_alias1 and
> virtual_alias2
> I set-up the following things:
>
> [ squid.conf ]
>
> http_port 80
> icp_port 0
>
> <access rules>
>
> redirect_program /local/bin/jesred
> redirect_children 10
> redirect_rewrites_host_header off
> httpd_accel_host virtual
> httpd_accel_port 0
> httpd_accel_single_host off
> httpd_accel_with_proxy off
> httpd_accel_uses_host_header off
>
> [redirect.rules]
> regex ^http://virtual_alias1/(.*) http://webserver1
> regex ^http://virtual_alias2/(.*) http://webserver2
>
> the problem is simple: the redirector doesn't translate the URL, and I don't
> understand why!
>
> the only thing I discovered is that only if I put the IP address in place of
> virtual_alias1/2, the "jesred" perform the URL-rewriting.
> But in this case I cannot distinguish among the aliases, becuase their IP
> address is the same!
>
> Any comments/suggestions?
>
> Only a note: I would use the redirector to add in the future, a kind of
> pattern-logic redirection (if it works....)
>
> Thanks and Regards
> Mauro Del Giudice
Received on Mon Dec 03 2001 - 14:02:15 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:10 MST