[squid-users] Reverse proxy with Url path problem

From: Pschittt <pschittt_at_gmail.com>
Date: Thu, 14 Jul 2011 11:59:31 +0200

Hi,

i'd like to use Squid as a reverse proxy, in front of multiple web servers.

When I want to access : http://mywebserver/serv1, i want Squid to be
able to redirect the url to http://192.168.2.1:2048. and to be
transparent for the users (the users should not see 192.168.2.1:2048
but http://mywebserver/serv1).

I used an acl urlpath_regex to filter, but i don't get to make it
fully functionnal.

I get this:
http://mywebserver/serv1 --> http://192.168.2.1:2048/serv1 instead of
http://192.168.2.1:2048/

Thanks for your help.

Here is my conf file :
http_port 80
acl serv1 urlpath_regex ^/serv1
acl all src
cache_peer 192.168.2.1 parent 2048 0 no-query originserver name=server1
cache_peer_access server1 allow serv1
cache_peer_access server1 deny all
http_access allow all
Received on Thu Jul 14 2011 - 09:59:40 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 14 2011 - 12:00:02 MDT