[squid-users] http host rewrite for origin (reverse proxy)

Tomas Mozes hydrapolic at gmail.com
Tue Mar 8 15:32:03 UTC 2016


Hello,
I would like to create a file distribution cache with squid. There is an
origin server that has some fixed limited capacity and I'd like to place a
few servers close to clients, in a mesh configuration (reverse proxy).

http_port 80 accel
cache_peer IP_ORIGIN parent 80 0 default no-query no-digest
no-netdb-exchange
cache_peer IP_SIBLING1 sibling 3128 3130
cache_peer IP_SIBLING2 sibling 3128 3130
...

Now the question is - is it possible to specify a mapping between the
hostname used on the cache vs the origin hostname? For example the origin
is reachable via storage.example.com and I'd like the cache to be
accesssible via cdn.example.com. So when a request comes to cdn.example.com,
it goes to the cache and it requests files from storage.example.com - map
cdn.example.com -> storage.example.com. I failed to find such an option for
cache_peer.

Thank you,
Tomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160308/c9715467/attachment.html>


More information about the squid-users mailing list