httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Lamborne <p...@maniatv.com>
Subject Re: AW: [users@httpd] rewrite gurus help? (with mod_proxy_ajp)
Date Thu, 05 Jan 2006 23:03:15 GMT
Robert, if you are ever in Denver I am treating you to dinner.

Thanks so much!!!!

I've been battling this for days and it was that easy.
pete


Robert Ionescu wrote:

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

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message