httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Marti <olivier.ma...@magnolia.info>
Subject [users@httpd] Proxy/Caching external sites
Date Thu, 11 Sep 2008 14:42:30 GMT
Dear all

For our website we implemented the addthis-scripts be I want them to  
get proxied and cached our the server locally,
so when the addthis server is down, or in generall, the Javascript  
from addthis is provided from our server only
recaching it now and then from it's orignial source.

I tried now serveral times to make it work using mod_proxy and  
mod_cache but I don't get it to work.
Any ideas how the configuration should look like? Here is an example  
of what I allready did so far (not working):


<VirtualHost 123.123.123.123:80>
ServerName my.site.com
DocumentRoot "/Library/WebServer/Documents"

<IfModule mod_proxy.c>
ProxyRequests Off

<Proxy *>
	Order deny,allow
	Allow from all
</Proxy>

ProxyPass	/addthis/ http://www.addthis.com/

<IfModule mod_cache.c>
	<IfModule mod_disk_cache.c>
		CacheRoot D:/server/apache2/cache
		CacheEnable disk /addthis
		CacheDirLevels 5
		CacheDirLength 3
		CacheDefaultExpire 86400
	</IfModule>
</IfModule>
</IfModule>

</VirtualHost>

The link withing the page then looks something like: /addthis/ 
bookmark.php

Thanks in advanced,
Olivier



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