Configuring Squid on localhost as Reverse proxy error -
i want install squid 3.1.19 in reverse proxy mode on localhost machine on port 3128, using nginx webserver on localhost on port 8080... installed squid, , changed config file.. when running squid, keep getting error
fatal: bungled squid.conf line 65: http_port 3128 accel defaultsite=localhost no-vhost squid cache (version 3.1.19): terminated abnormally. cpu usage: 0.020 seconds = 0.012 user + 0.008 sys maximum resident size: 12784 kb page faults physical i/o: 0 my squid.conf file looks this.. dont know origin of error.. googling didnt either.
# # recommended minimum configuration: # acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 # example rule allowing access local networks. # adapt list (internal) ip networks browsing # should allowed acl localnet src 10.0.0.0/8 # rfc1918 possible internal network acl localnet src 172.16.0.0/12 # rfc1918 possible internal network acl localnet src 192.168.0.0/16 # rfc1918 possible internal network acl localnet src fc00::/7 # rfc 4193 local private network range acl localnet src fe80::/10 # rfc 4291 link-local (directly plugged) machines 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 # # recommended minimum access permission configuration: # # allow cachemgr access localhost http_access allow manager localhost http_access deny manager # deny requests unsafe ports http_access deny !safe_ports # deny connect other secure ssl ports http_access deny connect !ssl_ports # recommend following uncommented protect innocent # web applications running on proxy server think # 1 can access services on "localhost" local user #http_access deny to_localhost # # insert own rule(s) here allow access clients # # example rule allowing access local networks. # adapt localnet in acl section list (internal) ip networks # browsing should allowed http_access allow localnet http_access allow localhost # , deny other access proxy http_access deny # squid listens port 3128 http_port 3128 accel defaultsite=localhost no-vhost cache_peer localhost parent 8080 0 no-query originserver name=myaccel acl our_sites dstdomain localhost http_access allow our_sites cache_peer_access myaccel allow our_sites cache_peer_access myaccel deny # uncomment , adjust following add disk cache directory. cache_dir ufs /usr/local/squid/var/cache 100 16 256 # leave coredumps in first cache dir coredump_dir /usr/local/squid/var/cache # add of own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320
the option no-vhost doesn't exists. if don't want vhost, don't write option in line.
Comments
Post a Comment