Matthew Toseland a écrit : >On Wed, Nov 09, 2005 at 06:46:29PM +0100, NextGen$ wrote: > > >>Bob a ?crit : >> >> >> >>>[snip.] >>>Also the Emu seednodes link should be coral-cached as per Ian's wishes, I >>>forgot >>>about that. >>> >>> >>> >>Maybe I should do it on the server side ? Using some "permanent >>redirect" trick... >> >> > >Probably a good idea. But do we know how to tell whether it is being >fetched by a coral-cache server? > > Matching the user-agent ?
Here is the revelant part of Apache's config file :
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{QUERY_STRING} !^coral-no-serve
RewriteRule ^/(.*)$ http://downloads.freenetproject.org.nyud.net:8090/$1
[R,L]
<IfModule mod_expires.c>
<LocationMatch "/seednodes/">
ExpiresActive on
ExpiresDefault "access plus 2 hour"
</LocationMatch>
</IfModule>
It should work ... please report if it doesn't.
>>Should I let people downloading them without using CoralCache ?
>>
>>NextGen$.
>>
>>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
