Forget my request.
I discovered a bug in my regular expression...
Sorry.... and thanks again
Mauro
----- Forwarded by Mauro Del Giudice/esrin/ESA on 2001/12/04 15:44 -----
|--------+------------------------>
| | Mauro Del |
| | Giudice |
| | |
| | 2001/12/04 |
| | 14:56 |
| | |
|--------+------------------------>
>----------------------------------------------------------------------------|
| |
| To: Henrik Nordstrom <hno@squid-cache.org> |
| cc: squid-users@squid-cache.org |
| Subject: Re: [squid-users] has someone ever used the redirector |
| "jesred"?(Document link: Mauro Del Giudice) |
>----------------------------------------------------------------------------|
The behavior is the same with both "on" and "off" for
httpd_accel_uses_host_header: the URL are not rewrited.
|--------+----------------------->
| | Henrik |
| | Nordstrom |
| | <hno@squid-ca|
| | che.org> |
| | |
| | 2001/12/03 |
| | 23:02 |
| | |
|--------+----------------------->
>----------------------------------------------------------------------------|
| |
| To: Mauro Del Giudice/esrin/ESA@ESA |
| cc: squid-users@squid-cache.org |
| Subject: Re: [squid-users] has someone ever used the redirector |
| "jesred"? |
>----------------------------------------------------------------------------|
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 Tue Dec 04 2001 - 07:43:29 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:10 MST