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

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

 



Pete Lamborne wrote:
[...]
RewriteEngine on
RewriteRule ^/pub/wiv/(.*)\.asx$ /pub/wiv?seoName=$1 [QSA]
RewriteRule ^/pub/?(.*)      ajp://dev3:8009/pub/$1 [P]

I set up the rewriteLog, here are the pertainent lines:

(note that dev2 is the apache box, dev3 is the tomcat box)

10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (2) init rewrite engine with requested uri /pub/wiv/Shop_Surf_00314_All_The_Rage.asx 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (3) applying pattern '^/pub/wiv/(.*)\.asx$' to uri '/pub/wiv/Shop_Surf_00314_All_The_Rage.asx' 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (2) rewrite '/pub/wiv/Shop_Surf_00314_All_The_Rage.asx' -> '/pub/wiv?seoName=Shop_Surf_00314_All_The_Rage' 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (3) split uri=/pub/wiv?seoName=Shop_Surf_00314_All_The_Rage -> uri=/pub/wiv, args=seoName=Shop_Surf_00314_All_The_Rage 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (3) applying pattern '^/pub/?(.*)' to uri '/pub/wiv' 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (2) rewrite '/pub/wiv' -> 'ajp://dev3:8009/pub/wiv' 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (2) forcing proxy-throughput with ajp://dev3:8009/pub/wiv 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (1) go-ahead with proxy request proxy:ajp://dev3:8009/pub/wiv [OK] 10.1.10.82 - - [05/Jan/2006:14:03:32 --0700] [dev2/sid#9de9ac0][rid#9eaff98/initial] (2) init rewrite engine with requested uri /pub/wiv/

Here -- last line: Something did send a redirect from /pub/wiv to /pub/wiv/ (trailing slash). So try to specify the slash within the substitution of the first RewriteRule:

/pub/wiv/?seoName=$1 [QSA]

--
Robert


---------------------------------------------------------------------
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