[squid-users] Re: Squid Concerns

From: Superted666 <ruckafella_at_gmail.com>
Date: Wed, 23 Jun 2010 05:09:30 -0700 (PDT)

Okay so i have cleared down my config and below is the current setup...

Squid.conf :

root_at_webserver [/usr/local/squid/var]# cat ../etc/squid.conf
# SQUID 3.0.STABLE5 Custom mywebsiteConfiguration File

# ACL Configuration
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
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 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 directives
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
#http_access deny CONNECT !SSL_ports
http_access allow localnet

acl port80 port 80
acl mysites dstdomain www.mywebsite.co.uk
http_access allow port80 mysites
http_access deny all

#Allow ICP queries from local networks only
icp_access allow localnet
icp_access deny all

#Allow HTCP queries from local networks only
htcp_access allow localnet
htcp_access deny all

# EM Reverse Proxy config 1
http_port MYIP:80 accel vhost
cache_peer 127.0.0.1 parent 80 0 no-query originserver

#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Log Configuration
access_log /usr/local/squid/var/logs/access.log squid
# cache_log /usr/local/squid/var/logs/cache.log
# cache_store_log /usr/local/squid/var/logs/store.log
# logfile_rotate 10

# Refresh Defaults
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320

#Default:
cache_effective_user squid
cache_effective_group squid

# ICP OPTIONS
# icp_port 0
icp_port 3130
# Coredump Options
coredump_dir /usr/local/squid/var/cache

Apache virtual host config :

<VirtualHost *>
    ServerName webserver.mywebsite.co.uk
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin test_at_test.com
</VirtualHost>

With this i get 133 194.159.145.70 TCP_MISS/404 689 GET
http://www.mywebsite.co.uk/ - FIRST_UP_PARENT/127.0.0.1 text/html in the
squid access log. but a 404 served from the webserver to my user.

-- 
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Concerns-tp2264334p2265521.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Wed Jun 23 2010 - 12:09:32 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 23 2010 - 12:00:04 MDT