mod_proxy static or dynamic?
I'm trying to get my rewrite rules up and working and all is well if I just use the L or R options at the end of the rewrite such as... RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [R] RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [L] But since I want to proxy to hide the long VHM url I want to use the P option. Only problem is, this doesn't seem to work. I'm using Redhat 7.2 with Apache 1.3.27 with mod_proxy compiled as a module. Here's the full line that's not working. RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [L,P] The mod_proxy page says you need to have it compiled in statically to the server to work with rewrite rules, is this true...anybody ever have this same trouble? Thanks Jason Wertz Senior Technology Specialist / WebMaster Delaware County Community College ph: 610-325-2771 fax: 610-325-2820 http://learn.dccc.edu/~jason
Jason Wertz wrote:
Redhat 7.2 with Apache 1.3.27 with mod_proxy compiled as a module. Here's the full line that's not working.
RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [L,P]
Did you remember to LoadModule the proxy_module? Did you remember to toggle RewriteEngine on?
The mod_proxy page says you need to have it compiled in statically to the server to work with rewrite rules, is this true...anybody ever have this same trouble?
It is not true, what is the URI to the page that claims that? -- Jamie Heilman http://audible.transient.net/~jamie/ "...thats the metaphorical equivalent of flopping your wedding tackle into a lion's mouth and flicking his lovespuds with a wet towel, pure insanity..." -Rimmer
Jason Wertz wrote:
RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [L,P]
It looks absolutely right. Have you tried with a direct IP adress? Like: RewriteRule ^/(.*) http://192.168.1.42:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHostR... [L,P] regards Max M
Jason Wertz wrote at 2003-7-2 18:04 -0400:
I'm trying to get my rewrite rules up and working and all is well if I just use the L or R options at the end of the rewrite such as...
RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [R] RewriteRule ^/(.*) http://www.mysite.edu:8080/VirtualHostBase/http/www.mysite.edu:80/VirtualHos... [L]
But since I want to proxy to hide the long VHM url I want to use the P option. Only problem is, this doesn't seem to work.
In what way does it not work? Note that you never should simply state "does not work" but always be clear about how it fails. Dieter
participants (4)
-
Dieter Maurer -
Jamie Heilman -
Jason Wertz -
Max M