View Single Post
Old 10th October 2006, 09:39
Ovidiu Ovidiu is offline
Senior Member
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts

I finally got a second apache2 up and running and am trying to configure the proxy cfg... first of all in /etc/apache/mods-enabled/proxy.conf there is a proxy on/off switch and nobody has ever mentioned if I have to turn it on there, everybody is only talking about these apache directives to set up proxying....

I want the first apache to reverse proxy all images to a second apache2 server listening on port 88 and I found 2 different aproaches till now in this posts:

<VirtualHost *:80>
ProxyPass /<port, if different from 80>/
ProxyPassReverse /<port, if different from 80>/
ProxyPreserveHost on
ProxyPassReverse / http://%{HTTP_HOST}:8088/
RewriteEngine on
RewriteCond %{REQUEST_URI} !.*\.(gif|png|jpg)$
RewriteRule ^/(.*) http://%{HTTP_HOST}:8088/$1 [P]
would the second example do what I want if I modified it like this:
RewriteCond %{REQUEST_URI} .*\.(gif|png|jpg)$
or how should that line look like?
Reply With Quote