Search squid archive

Re: Pointers please for conversion to 2.6 accelorated caching and adding a siblings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux