Forum Moderators: phranque

Message Too Old, No Replies

virtual host with rewriterule vs reverse proxy?

         

apachenoob

2:04 pm on Mar 26, 2010 (gmt 0)

10+ Year Member



Hi,

we're supposed to setup a reverse proxy server and someone ended up creating a vhost with rewriterules, i havent seen anywhere this replacing a reverse proxy server! can someone then tell me what's the difference between these two?

Both seem to go to the app server when using the web server url, then why use one or the other?

Thanks

jdMorgan

12:53 am on Mar 27, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Mod_rewrite supports the reverse proxy function with the [P] flag on RewriteRule.

It is useful when you need to check more server variables or HTTP request header values -- more conditions than can be tested by putting your ProxyPass directive inside <Directory> and <Limit> containers to make the reverse-proxy invocation conditional, for example.

Jim