Search squid archive

RE: Host-header per cache_peer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I don't seem to find out how to do this, so I'm asking now if there's
any way to do this?
The problem: I have a web server that has multiple "sites" running on
the same port (ie. ip-of-server/site1 ip-of-server/site2 etc.). A few of
them don't work if the host header is rewritten by Squid, and others
explicitly need it to be rewritten. Now, I can't create another squid
instance for changing the redirect_rewrites_host_header option, because
logically it can't listen on the same port and IP than the other squid
instance.
Is there any workaround for this problem?

Would it be possible for example to use an external redirector for
rewriting the Host: header just for certain requests while Squid would
be configured to not to rewrite it?

Regards,

Tuukka

> -----Original Message-----
> From: Laurikainen, Tuukka [mailto:t.laurikainen@xxxxxxxxxxxxxx]
> Sent: Thursday, July 28, 2005 5:48 PM
> To: Squid Users
> Subject:  Host-header per cache_peer
> 
> Hello,
> 
> Is there some way to tell per cache_peer in a reverse proxy
> configuration to rewrite the host header or not (in Squid 3)?
> 
> Other possibility would be to run two squid instances, one for
rewriting
> the host header and another for not to do it, but I'd prefer to run
one
> instance if possible. So far I have just found the
> redirect_rewrites_host_header option to alter this behavior, but
that's
> global for the squid.conf.
> 
> Kind regards,
> 
> Tuukka


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux