squid reverse proxy not caching!

This is a discussion on squid reverse proxy not caching! within the Squid Users forums, part of the Web Server and Related Forums category; I set up squid as a reverse proxy for apache on the same host. Things seem to be working fine ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2008
ltarc3@yahoo.com
 
Posts: n/a
Default squid reverse proxy not caching!

I set up squid as a reverse proxy for apache on the same host. Things
seem to be working fine except the access log shows everything is a
TCP_MISS. It's running on port 3128 and apache on port 80 until I can
get things straightened out.

OS: CentOS 5
Squid: squid-2.6.STABLE6-5.el5_1.2

(Why was this so easy in 2.5 and so hard in 2.6?)

Below are the differences from default in the squid.conf file. Any
suggestions?

[root@myhost squid]# grep -A 3 '!!!' squid.conf
#!!!
#http_port 80
http_port 3128 vhost defaultsite=www.mydomain.com
--
#!!!
#cache_peer 127.0.0.1 parent 80 0 no-query originserver
cache_peer 127.0.0.1 parent 80 0 no-query originserver login=PASS
--
#!!!
#acl QUERY urlpath_regex cgi-bin \?
#cache deny QUERY
--
#!!!
# cache_mem 8 MB
cache_mem 64 MB
--
#!!!
# maximum_object_size_in_memory 8 KB
maximum_object_size_in_memory 64 KB
--
#!!!
useragent_log /var/log/squid/useragent.log
--
#!!!
#refresh_pattern . 0 20% 4320
refresh_pattern . 2 100% 4320 override-
expire override-lastmod reload-into-ims ignore-no-cache
--
#!!!
#acl to_localhost dst 127.0.0.0/8
acl to_localhost dst 127.0.0.1/32
acl to_localhost dst 192.168.0.10/32
--
#!!!
#http_access deny to_localhost
http_access deny !to_localhost
--
#!!!
#http_access deny all
http_access allow all
--
#!!!
visible_hostname myhost
[root@myhost squid]#

Thanks,
Lance
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0