You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ka...@karjala.org on 2004/07/14 19:35:49 UTC

[users@httpd] Is it impossible to create a reverse caching proxy with Apache 1?

I've got two installations of Apache running on the same machine (Debian 
stable), one serves as a reverse proxy for the website which is held by 
the second apache server (hereafter named "content" server).

I've set up the Caching directives on the "proxy" apache as described in 
Apache's manual, however it doesn't cache:

    CacheRoot "/home/www/site1/apache-cache"
    CacheSize 10000
    CacheGcInterval 1.5
    CacheMaxExpire 0
    CacheLastModifiedFactor 0
    CacheDefaultExpire 0

The CacheRoot directory is read/writable by www-data, Apache's user 
account, so no problem there.

The requested pages (which aren't cached, but should be) are returned 
with an ETag field in the HTTP header and a
Cache-Control: public, must-revalidate, mag-age=0
 in the HTTP header as well.

Cookies (set in HTTP headers which are generated by the "content" 
server) are used throughout the site.

mod_gzip is used in the proxy server to compress all the HTML pages.

But it doesn't cache.

What am I doing wrong?

- Alexander


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


Re: [users@httpd] Is it impossible to create a reverse caching proxy with Apache 1? / extra info

Posted by ka...@karjala.org.
The pages are being cached, but only in the local cache of my client's 
machine...

No files are being created in the the cacheroot directory.




karjala_lists@karjala.org wrote:

> I've got two installations of Apache running on the same machine 
> (Debian stable), one serves as a reverse proxy for the website which 
> is held by the second apache server (hereafter named "content" server).
>
> I've set up the Caching directives on the "proxy" apache as described 
> in Apache's manual, however it doesn't cache:
>
>    CacheRoot "/home/www/site1/apache-cache"
>    CacheSize 10000
>    CacheGcInterval 1.5
>    CacheMaxExpire 0
>    CacheLastModifiedFactor 0
>    CacheDefaultExpire 0
>
> The CacheRoot directory is read/writable by www-data, Apache's user 
> account, so no problem there.
>
> The requested pages (which aren't cached, but should be) are returned 
> with an ETag field in the HTTP header and a
> Cache-Control: public, must-revalidate, mag-age=0
> in the HTTP header as well.
>
> Cookies (set in HTTP headers which are generated by the "content" 
> server) are used throughout the site.
>
> mod_gzip is used in the proxy server to compress all the HTML pages.
>
> But it doesn't cache.
>
> What am I doing wrong?
>
> - Alexander
>
>
> ---------------------------------------------------------------------
> 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
>
>
>



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