[squid-users] Problem with Squid 2.6 as reverse proxy

From: Santiago Del Castillo <santiago.del.castillo@dont-contact.us>
Date: Wed, 6 Jun 2007 15:38:33 -0300

Hi, I'm having problems configuren Squid 2.6 RELEASE13 as reverse proxy

here's what i get:

access.log:

1181084915.474 2 xxx.xxx.xxx.xxx TCP_MISS/503 1663 GET
http://XXXXXXXX.com//styles/best.css - NONE/- text/html
1181084915.477 2 xxx.xxx.xxx.xxx TCP_MISS/503 1669 GET
http://XXXXXXXX.com//images/favicon.ico - NONE/- text/html
1181084915.855 3 xxx.xxx.xxx.xxx TCP_MISS/503 1665 GET
http://XXXXXXXX.com//styles/stars.css - NONE/- text/html
1181084916.238 3 xxx.xxx.xxx.xxx TCP_MISS/503 1667 GET
http://XXXXXXXX.com//styles/alerts.css - NONE/- text/html
1181084916.619 3 xxx.xxx.xxx.xxx TCP_MISS/503 1671 GET
http://XXXXXXXX.com//styles/register.css - NONE/- text/html

cache.log:

2007/06/05 18:08:35| Failed to select source for
'http://XXXXXXXX.com//styles/best.css'
2007/06/05 18:08:35| always_direct = 0
2007/06/05 18:08:35| never_direct = 0
2007/06/05 18:08:35| timedout = 0
2007/06/05 18:08:35| Failed to select source for
'http://XXXXXXXX.com//images/favicon.ico'
2007/06/05 18:08:35| always_direct = 0
2007/06/05 18:08:35| never_direct = 0
2007/06/05 18:08:35| timedout = 0
2007/06/05 18:08:35| Failed to select source for
'http://XXXXXXXX.com//styles/stars.css'
2007/06/05 18:08:35| always_direct = 0
2007/06/05 18:08:35| never_direct = 0
2007/06/05 18:08:35| timedout = 0
2007/06/05 18:08:36| Failed to select source for
'http://XXXXXXXX.com//styles/alerts.css'
2007/06/05 18:08:36| always_direct = 0
2007/06/05 18:08:36| never_direct = 0
2007/06/05 18:08:36| timedout = 0
2007/06/05 18:08:36| Failed to select source for
'http://XXXXXXXX.com//styles/register.css'
2007/06/05 18:08:36| always_direct = 0
2007/06/05 18:08:36| never_direct = 0
2007/06/05 18:08:36| timedout = 0

Here's my conf:

http_port 80 vhost accel
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
maximum_object_size_in_memory 4096 KB
cache_dir aufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
dns_nameservers xxx.xxx.xxx.xxx
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
half_closed_clients off
acl RP src xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx
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 to_localhost dst 127.0.0.0/8
acl Safe_ports port 80
acl CONNECT method CONNECT
acl AllowedSites dstdomain "/etc/squid/allowed_sites"
acl DeniedSites url_regex "/etc/squid/denied_sites"
http_access allow AllowedSites !DeniedSites
http_access allow RP
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
http_reply_access allow all
icp_access allow all
miss_access allow all
cache_effective_user squid
cache_effective_group squid
logfile_rotate 4
coredump_dir /var/spool/squid
client_persistent_connections off
server_persistent_connections off
persistent_connection_after_error off

if i set always_direct allow all it works. But the problem is that
this squid will be used as sibling :(

If you need more info, just ask.

Cheers!
Santiago
Received on Wed Jun 06 2007 - 12:38:37 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:04 MDT