Proxy/Caching external sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux