Thread: Squid 3.0
View Single Post
Old 23rd January 2010, 15:59
chyi chyi is offline
Junior Member
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Squid 3.0

Hi, i'm very new to linux environment. I struggled to set up Squid 3.0 and finally got it working which route to the default site.

What I intend to achieve is that when user try to browse, it will come to squid server (already point to squid server). The outcome will forward them to the defaultsite instead. I understand it could be missing the command of vhost at the http_port. But when I add vhost, it becomes inaccessible.

I also intended to add other "rerouting" domains such as when I type, it will actually go to, ->, etc (just an example)

My question is, based on the existing settings, how can i achieve that? and if i also want to use this squid server as proxy server (different port), can it be done?

Thanks. I hope someone can helped me here as I have tried google it and to no avail.

cache_peer localhost parent 80 0 no-query originserver name=accel_super

acl manager proto cache_object
acl localhost src
acl to_localhost dst
acl localnet src	# RFC1918 possible internal network
acl localnet src	# RFC1918 possible internal network
acl localnet src	# RFC1918 possible internal network
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 3724
acl Safe_ports port 6112-6119
acl Safe_ports port 6881-6999
# 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 examplenet url_regex
acl superfrxnet dstdomain
cache_peer_access accel_super allow supernet

http_access allow examplenet  
http_access allow supernet

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all
htcp_access allow localnet
htcp_access deny all

http_port 80 accel

always_direct allow all
hierarchy_stoplist cgi-bin ?
Reply With Quote
Sponsored Links