httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <li...@itech7.com>
Subject Re: [users@httpd] Apache as caching proxy
Date Tue, 01 Jun 2010 16:43:11 GMT
2010/6/1 Igor Galić <i.galic@brainsware.org>:
>
> ----- "Nilesh Govindarajan" <lists@itech7.com> wrote:
>
>> Hi,
>>
>> I have an installation of Apache running, so thinking of using it as
>> a
>> personal caching server after being fed up of firefox crashes which
>> clears the cache.
>> I have set it up using the manual and some guides using Google, but
>> how do I know that its working ?
>> Here are my settings:
>
> Before saying anything I should tell you that Apache httpd is not really
> recommended as Forward Proxy. There are better alternatives, (even!) Squid
> being one of them.
>
>> ProxyRequests On
>> ProxyVia Off
>> ProxyBadHeader Ignore
>> ProxyStatus On
>> <Proxy *>
>> Order deny,allow
>> Deny from All
>> Allow from 192.168.1.0 127.0.0.1 localhost
>> </Proxy>
>> AllowCONNECT 443
>> CacheDefaultExpire 3600
>> CacheMaxExpire 604800
>> CacheIgnoreCacheControl On
>> CacheStorePrivate On
>> CacheStoreNoStore On
>> CacheIgnoreNoLastMod On
>> CacheRoot /home/proxy_cache
>> CacheEnable disk /
>> CacheMaxFileSize 5242880
>> CacheIgnoreURLSessionIdentifiers jsessionid PHPSESSID sid
>>
>> What happens if I remove the CacheMaxExpire directive ? Will Apache
>> check for the document's last-modified time ?
>> I would like latest stuff on websites I visit, so please guide me in
>> the right direction.
>
> http://httpd.apache.org/docs/2.2/mod/mod_cache.html#cachemaxexpire
>
> I think the documentation is quite clear on this:
> ``Thus, documents will be out of date at most this number of seconds. This maximum value
is enforced even if an expiry date was supplied with the document.''
>
> If you remove the directive it will fall back to:
>
> Default:        CacheMaxExpire 86400 (one day)
>
> What you probably want to do is invalidate the cache, but that can only be done with
> htcacheclean from trunk so far: http://httpd.apache.org/docs/trunk/programs/htcacheclean.html
> Which again only makes sense in a reverse proxy setup....
>
> So long,
>
> --
> Igor Galić
>
> Tel: +43 (0) 699 122 96 338
> Fax: +43(0) 1 91 333 41
> Mail: i.galic@brainsware.org
> URL: http://brainsware.org/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


I know about Squid and tried that, but after many unsucessful attempts
configuring it and no time to research on Google, I decided to use
Apache.
Well, the caching is working well now without any problems.

-- 
Nilesh Govindarajan
Facebook: nilesh.gr
Twitter: nileshgr
Website: www.itech7.com
Cheap and Reliable VPS Hosting: http://j.mp/arHk5e

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message