RE: [users@httpd] rewrite gurus help? (with mod_proxy_ajp)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Could it possibly be because ProxyPass is evaluated before RewriteRule ?

How does the following work :

RewriteEngine on
RewriteRule /pub/wiv/(.*).asx$ ajp://theTomcatBox:8009/pub/wiv?seoName=$1 [P,QSA]
RewriteRule /pub ajp://theTomcatBox:8009/pub [P]
ProxyPassReverse /pub ajp://theTomcatBox:8009/pub 

-ascs

-----Original Message-----
From: Pete Lamborne [mailto:pete@xxxxxxxxxxx] 
Sent: Monday, January 02, 2006 6:48 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] rewrite gurus help? (with mod_proxy_ajp)

Hey all,
There is very little info out there on this so far, given how new 
mod_proxy_ajp is.  One post I found seemed to indicate the same bug with 
no solution....

The problem is that I can't get mod_rewrite to work transparently with 
mod_proxy_ajp.  It either doesn't work at all (when I don't specify 
:proxy or [P]), or works like a redirect, changing the URL in the user's 
browser.

Here's a quick conf:

RewriteEngine on
RewriteRule /pub/wiv/(.*).asx$ /pub/wiv?seoName=$1 [P]
ProxyPass /pub ajp://theTomcatBox:8009/pub
ProxyPassReverse /pub ajp://theTomcatBox:8009/pub

Here's something else I tried with the same results:

RewriteEngine on
RewriteRule /pub/wiv/(.*).asx$ proxy:ajp://dev3:8009/pub/wiv?seoName=$1
ProxyPass /pub ajp://theTomcatBox:8009/pub
ProxyPassReverse /pub ajp://theTomcatBox:8009/pub

Both of these solutions work, but replace the pretty URL with the ugly 
one for the end-user.  I want it to be transparent to the user.

What am I missing?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux