Apache + ZServer: Excluding some URLS from a ProxyPass
I know this more of an Apache question than a Zope question, but I figured Zope folk were most likely know the answer Here's the situation: I'm moving our website to Zope, but there are some old CGI scripts we still need. Reading the howtos, it seem like the best way to this is with ProxyPass. What I'd like to is something like ProxyPass / http://www.oursite.com:9673/ ProxyPassReverse / http://www.oursite.com:9673/ But somehow I'd like http://www.oursite.com/survey.cgi to bypass this rule untouched. The best way I could think of to do this would be to something like DirectoryIndex index_html ProxyPass /index_html http://www.oursite.com:9673/ ProxyPassReverse /index_html http://www.oursite.com:9673/ And then forward the individual directories as well: ProxyPass /stuff http://www.oursite.com:9673/stuff ProxyPassReverse /stuff http://www.oursite.com:9673/stuff ProxyPass /morestuff http://www.oursite.com:9673/morestuff ProxyPassReverse /morestuff http://www.oursite.com:9673/morestuff Sadly, this doesn't work (requests for http://www.oursite.com/ return apache's listing of the / directory, although requests for http://www.oursite.com/index_html work fine (see http://bugs.apache.org/index.cgi/full/3596 for the only discussion I could find on the subject)). Is there some way to get Apache to transparently forward all requests except requests for those certain CGI scripts requests to the Zope website? Maybe some mod_rewrite rule? ===== Peter Hernberg SUNY Potsdam's most illegible bachelor "You must pass this message on in the next 72 hours or you will have bad luck. This mantra will come true even if you aren't superstitious!!!!" --from a forwarded email __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
From: "Peter Hernberg" <petehern@yahoo.com>
ProxyPass / http://www.oursite.com:9673/ ProxyPassReverse / http://www.oursite.com:9673/
But somehow I'd like http://www.oursite.com/survey.cgi to bypass this rule untouched.
I suspect that you'll need RewriteRules. Something like: RewriteRule /survey.cgi - [L] RewriteRule /(.*) http://www.oursite.com:9673/$1 [P,L] The ProxyPassReverse *may* still do its job, but I recommend a VirtualHostMonster anyway. Cheers, Evan @ digicool & 4-am
participants (2)
-
Evan Simpson -
Peter Hernberg