Search squid archive

Reverse proxy with Url path problem

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

 



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


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

  Powered by Linux