You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Merdouille <jg...@r-advertising.com> on 2009/05/04 14:06:21 UTC
Mod_cache+Mod_proxy+Mod_rewrite
Hi!
I neeed a proxycache wich receive url like :
http://mycache/img=http%3A%2F%2Fhost%2Fpath%2Ffile
and send a response with the content of http://host/path/file
I try something like :
<virtualhost *:82>
ServerName cache-ext
LogLevel debug
CustomLog /var/log/apache2/cache-partenaire_access.log combined
ErrorLog /var/log/apache2/cache-partenaire_error.log
ServerSignature Off
<IfModule core.c>
AllowEncodedSlashes on
</ifModule>
<IfModule mod_rewrite.c>
LogLevel debug
Options FollowSymLinks
RewriteEngine On
<directory />
RewriteBase /
</directory>
RewriteRule ^img=([^*]+)$ $0 [P]
Rewritelog /var/log/apache2/rew.log
</IfModule>
ProxyVia on
<IfModule mod_proxy.c>
ProxyRequests on
</ifModule>
<Proxy *>
Allow from all
</Proxy>
</VirtualHost>
using AllowEncodedSlashes on to décode %2F etc...
But it seems not to try rewrite anything....
An ideas?
--
View this message in context: http://www.nabble.com/Mod_cache%2BMod_proxy%2BMod_rewrite-tp23366728p23366728.html
Sent from the Commons - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: Mod_cache+Mod_proxy+Mod_rewrite
Posted by sebb <se...@gmail.com>.
This appears to be a question for the httpd-user list, see:
http://httpd.apache.org/lists.html
On 04/05/2009, Merdouille <jg...@r-advertising.com> wrote:
>
> Hi!
>
> I neeed a proxycache wich receive url like :
> http://mycache/img=http%3A%2F%2Fhost%2Fpath%2Ffile
> and send a response with the content of http://host/path/file
>
> I try something like :
>
> <virtualhost *:82>
> ServerName cache-ext
> LogLevel debug
> CustomLog /var/log/apache2/cache-partenaire_access.log combined
> ErrorLog /var/log/apache2/cache-partenaire_error.log
> ServerSignature Off
> <IfModule core.c>
> AllowEncodedSlashes on
> </ifModule>
> <IfModule mod_rewrite.c>
> LogLevel debug
> Options FollowSymLinks
> RewriteEngine On
> <directory />
> RewriteBase /
> </directory>
> RewriteRule ^img=([^*]+)$ $0 [P]
> Rewritelog /var/log/apache2/rew.log
> </IfModule>
> ProxyVia on
> <IfModule mod_proxy.c>
> ProxyRequests on
> </ifModule>
> <Proxy *>
> Allow from all
> </Proxy>
> </VirtualHost>
>
> using AllowEncodedSlashes on to décode %2F etc...
>
> But it seems not to try rewrite anything....
>
> An ideas?
>
> --
> View this message in context: http://www.nabble.com/Mod_cache%2BMod_proxy%2BMod_rewrite-tp23366728p23366728.html
> Sent from the Commons - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org