Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

ProxyPass- Too Much!

Quote Reply
ProxyPass- Too Much!
Hi:

I have my proxyPass set up to sent /forum/ to the proxy. Problem is, my images are in /forum/images/

Is there any way to NOT proxy pass that directory, or should I moove the images directory? Of maybe use Mod_rewrite?
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] ProxyPass- Too Much! In reply to
You can use mod_rewrite with a RewriteRule handle proxy passes, without needing a redirect. Try something like:

RewriteEngine On
RewriteRule ^(/forum/(\w+\.cgi|admin/.*)) http://localhost:8003$1 [proxy,last]
ProxyPassReverse / http://localhost:8003/

It will probably take a little tweaking, depending on your mod_perl proxy setup - what do you have now for your ProxyPass line?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] ProxyPass- Too Much! In reply to
J-Man:

Right now, just a simple
ProxyPass /forum/ http://66.219.198.212:9001/forum/
ProxyPassReverse /forum/ http://66.219.198.212:9001/forum/

Actually, after looking, probably not too much trouble to just move the images....
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] ProxyPass- Too Much! In reply to
Try:

RewriteEngine On
RewriteRule ^(/forum/(\w+\.cgi|admin/.*)) http://
66.219.198.212:9001$1 [proxy,last]
ProxyPassReverse /forum/ http://
66.219.198.212:9001/forum/

That ought to proxypass just the gforum .cgi and admin directory.


Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] ProxyPass- Too Much! In reply to
j-mAN!

tHANK YOU!

(Damn caps lock!)
dave

Big Cartoon DataBase
Big Comic Book DataBase