[squid-users] Rewriting URL

From: Roman Gelfand <rgelfand2_at_gmail.com>
Date: Fri, 17 Feb 2012 00:10:22 -0500

Consider the following configuration...

acl host1 dst host1.dom.com
http_port 80 accel defaultsite=host1.dom.com vhost
cache_peer 192.168.1.42 parent 80 0 no-query originserver name=host1server
never_direct allow host1
http_access allow host1
cache_peer_access host1server allow host1
cache_peer_access host1server deny all

This is a case of forwarding requests internal server without changing header.

What changes would I need to make if I wanted to
a) listen for http://www.maindom.com/host1
b) forward these requests to http://host1.dom.com

Thanks in advance
Received on Fri Feb 17 2012 - 05:10:30 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 17 2012 - 12:00:03 MST