Re: [squid-users] Pointers please for conversion to 2.6 accelorated caching and adding a siblings

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 05 Dec 2006 23:05:05 +0100

tis 2006-12-05 klockan 13:34 -0700 skrev Nicole:

> emulate_httpd_log on

Using this AND specifying the log format to use does not make much
sense..

> logformat small %ru %<st
> access_log /var/log/apache/access_log small

> hierarchy_stoplist cgi-bin ?

You may want to remove the above, but it depends on your use of ?

> http_port 80 vhost defaultsite=www.mycooldomain.com
> cache_peer 6.2.8.3 parent 80 0 no-query originserver

ok

> acl port80 port 80

> ###### make all .php/.php3's uncachable:
> acl PHP url_regex .php$
> acl PHP3 url_regex .php3$
> no_cache deny PHP PHP3 QUERY acceleratedHost acceleratedPost DSUKoffice manager localhost Safe_ports CONNECT

The above can not work... like all other allow/deny lines no_cache
matches if every acl listed on the same line is true for the request. So
the above can never match any request.

It's not very obvious from the list of acl's what you actually try to
accomplish here, but to do what the comment says use

acl PHP url_regex \.php$ \.php3$
no_cache deny PHP

but remember that this only works when the requested URL contains any of
the patterns, i.e. not when the web server automatically searches for
intex.php or the .php extension without it being explicitly mentioned in
the URL.

Generally it's better to make the scripts return proper caching headers
allowing/denying caching rather than hacking around them in the
accelerator setup.

Regards
Henrik

Received on Tue Dec 05 2006 - 15:05:13 MST

This archive was generated by hypermail pre-2.1.9 : Mon Jan 01 2007 - 12:00:01 MST