Re: [squid-users] Pointers please for conversion to 2.6 accelor

From: Nicole <nmh@dont-contact.us>
Date: Tue, 05 Dec 2006 15:00:59 -0700 (PST)

On 05-Dec-06 My Secret NSA Wiretap Overheard Henrik Nordstrom Saying :
> 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..

 Ah thanks!

>> 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 ?
>

 The servers are used only for caching images. So yes, I don't need, or I guess,
want, to cache/handle anything else.

 Suggestions?

>> 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

 Ah thanks!
 
> 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.

 Any suggestions would be appreciatted.

  Thanks!

  Nicole

 
> Regards
> Henrik
Received on Tue Dec 05 2006 - 16:01:07 MST

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