Re: [squid-users] Is there a way to select a cache peer before URL rewrite occur ?

From: Lucas Brasilino <lucas.brasilino_at_gmail.com>
Date: Tue, 9 Jun 2009 10:47:06 -0300

Hi Amos, thanks for your answer

> The problem being that after the re-write the destination domain has in
> fact altered. Whether a peer is involved or not. That is what re-writing
> means.

Yes... I know....

> Make the web server at localhost understand that it has two public domains
> being serviced.
> Only re-write the path portion of the domain to get the right file path, if
> at all. Removing the need for re-writing will give a further large increase
> in speed.

My example was just to give an idea. My backend servers are a bit more
complicated,
since they are Zope with Plone (and VirtualHostMonster). The way it
implements virtual host is (primarily) in the 'path' part of URL, not
in the 'hostname' part. So a 'pre re-write'
peer selection should be nice :-)

bests regards
Lucas Brasilino
Received on Wed Jun 10 2009 - 23:45:37 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 11 2009 - 12:00:03 MDT