Squid as a reverse proxy with virtualhost and esi features help.

From: Dino <dino@dont-contact.us>
Date: Thu, 16 Oct 2003 17:13:57 +0200

Hello, we have troubles setting up squid as a reverse proxy with virtual host
and esi features.

Can anyone paste me a squid 3 configuration file that is ok for me?
We tried for a week, whitout success in vhost handling.

Squid as a reverse proxy on a single site with esi seems to work. Here is out
configuration file...

# This make squid not to run properly, error page displayed!!
# http_port 80 accel vhost protocol=http defaultsite=213.86....:81
http_port 80 accel protocol=http defaultsite=213.86....:81
icp_port 0
htcp_port 0
cache_peer 213.86.57.203 parent 81 0 no-query default originserver
name=localhost
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl vhosts_domains dstdomain testgroup.pro-netics.com .........
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 81 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow all
http_access allow manager
http_access allow localhost
http_access allow vhosts_domains
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow to_localhost
acl our_networks src 213.86.... 213.86.... 213.86..... 213.86.57.....
http_access allow our_networks
http_access deny all
cache_peer_access localhost allow all
cache_peer_access localhost allow vhosts_domains
http_reply_access allow all
icp_access allow all
visible_hostname proxy.pro-netics.com
coredump_dir /usr/local/squid/var/cache

Thank you for your help! If it works than we can try esi with virtual hosting
features.

Ciao,
Dino e Alessandro.

--
--------------------------------------------
|  Dino Ciuffetti - Network Administrator  |
|      +**+   Pro-Netics S.r.l.  +**+      |
--------------------------------------------
Received on Thu Oct 16 2003 - 09:14:31 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:44 MST