[squid-users] Squid is not working fine.

From: Shin Imai <shin.imai@dont-contact.us>
Date: Wed, 15 Jun 2005 19:05:00 +0900

I have installed squid/3.0-PRE3-20050614 with no problem as http accelerator.
It runs fine but when I access a web page through squid, it won't work.
I get

Unable to forward this request at this time

and says

The cache administrator does not allow this cache to make direct connections to origin servers, and
All configured parent caches are currently unreachable.

My conf file is:

http_port 80 vhost accel

visible_hostname test.localhost.com
cache_mgr webmaster@localhost

cache_effective_user squid
cache_effective_group squid

# case insensitive pattern min percent max options
refresh_pattern -i \.swf$ 0 100% 300 ignore-reload
refresh_pattern -i \.jpg$ 0 100% 300 ignore-reload
refresh_pattern -i \.gif$ 0 100% 300 ignore-reload
refresh_pattern -i \.xml$ 0 100% 300 ignore-reload
refresh_pattern -i \.jsp$ 0 100% 300 ignore-reload
refresh_pattern . 0 100% 3600 ignore-reload

cache_mem 500 MB
maximum_object_size 32768 KB

cache_replacement_policy lru
memory_replacement_policy lru

cachemgr_passwd password all

cache_dir ufs /www/squid/cache 5120 32 512

acl manager proto cache_object
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl safe_net src 192.168.0.0/255.255.0.0
acl to_localhost dst 127.0.0.0/8
acl PURGE method purge
acl in_backendpool dstdomain .localhost.com

cache_store_log /www/squid/logs/cache_store.log
access_log none
cache_log /www/squid/logs/cache.log

client_lifetime 30 minutes
request_timeout 3 minutes
persistent_request_timeout 20 seconds

cache_peer 192.168.12.123 parent 80 0 no-query no-digest originserver
name=appvip
cache_peer_access appvip allow in_backendpool
cache_peer_access appvip deny all

http_access allow purge localhost
http_access deny purge
http_access deny manager !safe_net
http_access allow all
#always_direct allow all
#always_direct allow safe_net
never_direct allow all

ie_refresh on

If I comment out the line "never_direct allow all" and take out # at the
line "always_direct allow all", it works fine.

Please anyone advise me.

Shin

-- 
Shin Imai <shin.imai@etimestech.jp>
Received on Wed Jun 15 2005 - 04:05:07 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jul 01 2005 - 12:00:02 MDT