Search squid archive

Re: Is there a way to select a cache peer before URL rewrite occur ?

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

 



Lucas Brasilino wrote:
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 :-)


Hmm, well, if you can re-write just the path and leave the Zope receiving (even ignoring) the public domains it will give you the fastest easiest solution.

The other way mentioned earlier also seems good.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1

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

  Powered by Linux