You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Mornini <tm...@infomania.com> on 2000/02/15 20:43:10 UTC
Re: ProxyPass question
On Tue, 15 Feb 2000, Eugene Miretskiy wrote:
> I have a site which is completelly dynamic (everything mod_perl)
> I want to use mod_proxy+mod_perl setup so that mod_proxy serves all
> the images and proxies dynamic content to mod_perl server.
> Furthermore, all images reside in /pics directory (i.e.
> http://the.site.com/pics/logo.gif),
> and I _really_ do not want to change this.
>
> Here is a problem I ran into:
> I have the following lines in httpd.conf file to proxy dynamic content to
> mod_perl
> ProxyPass / http://my_backend_server/
> ProxyPassReverse / http://my_backend_server/
>
> I cannot find a way to make mod_proxy server handle pics. I tried
Rewrite to the rescue!
RewriteLogLevel 1
RewriteLog "| /usr/local/apache_proxy/bin/rotatelogs /usr/local/apache-common/logs/r_log 86400"
<VirtualHost 0.0.0.0>
RewriteEngine on
RewriteOptions inherit
RewriteRule (^.+\.(mtpl|tmpl|mpl|cgi)$) http://your.backend.com$1 [P]
</VirtualHost>
--
-- Tom Mornini
-- InfoMania Printing and Prepress