View Single Post

  #5 (permalink)  
Old 05-18-2008, 04:56 PM
Mic Mic is offline
Junior Member
User
 
Join Date: Apr 2008
My distro: Centos
Posts: 3
Rep Power: 0
Mic is on a distinguished road
Default

thanks, but a few of these features seems to have been removed in 3.0.

efter giving up I gave it another try today and actually got it partly working with this config:

http_port 3128 defaultsite=www.mysite.com vhost
forwarded_for on
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
cache_peer MYSITEIP parent 80 0 no-query originserver name=apache
acl sites_apache dstdomain Website Hosting - Mysite.com mysite.com
acl our_sites dstdomain Website Hosting - Mysite.com mysite.com
cache_peer_access apache allow sites_apache
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/24
acl to_localhost dst MYSITEIP/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 our_sites2
http_access allow our_sites
http_access allow manager all
http_access allow manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
access_log /var/log/squid/access.log
cache_mgr someone@somewhere.com

1) Question, does it still work as a webcache/accelerator without the accel in http_port 3128 accel defaultsite=www.mysite.com vhost, as I couldn't get it running with that switch?

2) How to make it work for more domains than mysite.com? I got 4 domains on that server each with a diffrent IP, and I don't seem to be able to use more than 1 line of http_port 3128 defaultsite=www.mysite.com vhost or cache_peer MYSITEIP parent 80 0 no-query originserver name=apache lines.

Last edited by Mic; 05-18-2008 at 05:10 PM..
Reply With Quote