Apache Mod_cache And Proxyreverse Solution

I must add mod_cache to my apache server and am looking for someone who really knows apache well.

Here is what I have now (example):

<VirtualHost 67.68.69.70:443>
ServerName www.asynx-org.com
SSLEngine On
SSLCertificateFile conf/ssl/asynx-org.cert
SSLCertificateKeyFile conf/ssl/asynx-org.key
ProxyPass / https://115.116.117.118/
ProxyPassReverse / https://115.116.117.118/
CustomLog “logs/asynx-org-access.log” combined
</VirtualHost>

<VirtualHost 67.68.69.70:80>
ProxyPass / https://115.116.117.118/
ProxyPassReverse / https://115.116.117.118/
CustomLog “logs/asynx-org-access.log” combined
CacheRoot “/cache”
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheDefaultExpire 3600
</VirtualHost>

I like to cache a certain directory on https://115.116.117.118/cache that contains all files to be cached.
Everything else should be pulled from 115.116.117.118 with every request.

How do I set the “expiration” on cache? Or is it based upon the original “Expires” header from 115.116.117.118 ?

If you can give me the correct apache settings/parameter so that it works as described, the job is done.

Leave a Reply

Your email address will not be published. Required fields are marked *