httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Kratochvil <rcpt-dev.AT.httpd.apache....@jankratochvil.net>
Subject [patch] mod_rewrite args + "qsa"
Date Sat, 28 Aug 2004 07:32:52 GMT
Hi,

Two mod_rewrite patches:

attached "httpd-2.0.50-rewrite-args.patch" will no longer omit $QUERY_STRINGs
of [P]-proxypassed requests after their rewriting and [QSA] possibly merging
a new QUERY_STRING.
.conf:
	ServerName 10.10.145.100
	RewriteEngine on
	RewriteRule ^/ http://mms2.org/mms-off?operator=oskarmobil.cz [QSA,P]
Before patch:
	213.220.235.217 - - [27/Aug/2004:11:45:59 +0200] "GET http://10.10.145.100/?message-id=8326039
HTTP/1.0" 500 659
	195.122.208.84 - - [27/Aug/2004:11:45:59 +0200] "GET /mms-off HTTP/1.1" 500 659
	(2) init rewrite engine with requested uri /
	(3) applying pattern '^/' to uri '/'
	(2) rewrite '/' -> 'http://mms2.org/mms-off?operator=t-mobile.cz'
	(3) split uri=http://mms2.org/mms-off?operator=t-mobile.cz -> uri=http://mms2.org/mms-off,
args=operator=t-mobile.cz&message-id=8326039
	(2) forcing proxy-throughput with http://mms2.org/mms-off
	(1) go-ahead with proxy request proxy:http://mms2.org/mms-off [OK]

After patch:
	213.220.235.217 - - [27/Aug/2004:13:52:20 +0200] "GET http://10.10.145.100/?message-id=8326039
HTTP/1.0" 200 221
	195.122.208.84 - - [27/Aug/2004:13:52:20 +0200] "GET /mms-off?operator=oskarmobil.cz&message-id=8326039
HTTP/1.1" 200 221
	(2) init rewrite engine with requested uri /
	(3) applying pattern '^/' to uri '/'
	(2) rewrite '/' -> 'http://mms2.org/mms-off?operator=oskarmobil.cz'
	(3) split uri=http://mms2.org/mms-off?operator=oskarmobil.cz -> uri=http://mms2.org/mms-off,
args=operator=oskarmobil.cz&message-id=8326039
	(2) forcing proxy-throughput with http://mms2.org/mms-off
	(1) go-ahead with proxy request proxy:http://mms2.org/mms-off?operator=oskarmobil.cz&message-id=8326039
[OK]

The fix just follows the suggested /* see proxy_http:proxy_http_canon() */.
Patch applies both to httpd-2.0.50 and httpd-2.1 CVS.


The other patch - attached "mod_rewrite-qsa.patch" is just a fatal typo in the
current httpd-2.1 CVS.


Regards,
Lace

-- 
Jan Kratochvil; Captive: free r/w NTFS Filesystem; http://www.jankratochvil.net/

Mime
View raw message