Re: RewriteRule problem

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

 



Krist van Besien wrote:
On Feb 19, 2008 11:35 PM, Ruslan Sivak <rsivak@xxxxxxxxxxxxx> wrote:

Logs:

for somehostname.com/u/testing test

127.0.0.1 - - [19/Feb/2008:17:25:33 --0500]
[somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) init rewrite
engine with requested uri /u/testing test
127.0.0.1 - - [19/Feb/2008:17:25:33 --0500]
[somehostname.com/sid#7680e0][rid#a82fa0/initial] (3) applying pattern
'^/u/(.+)/*$' to uri '/u/testing test'
127.0.0.1 - - [19/Feb/2008:17:25:33 --0500]
[somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) rewrite
'/u/testing test' -> '/index.html?user=testing test'
127.0.0.1 - - [19/Feb/2008:17:25:33 --0500]
[somehostname.com/sid#7680e0][rid#a82fa0/initial] (3) split
uri=/index.html?user=testing test -> uri=/index.cfm, args=user=testing test
127.0.0.1 - - [19/Feb/2008:17:25:33 --0500]
[somehostname.com/sid#7680e0][rid#a82fa0/initial] (2) forcing
proxy-throughput with http://somehostname.com/index.html
127.0.0.1 - - [19/Feb/2008:17:25:33 --0500]
[somehostname.com/sid#7680e0][rid#a82fa0/initial] (1) go-ahead with
proxy request proxy:http://somehostname.com/index.html [OK]


for somehostname.com/u/#1 test

127.0.0.1 - - [19/Feb/2008:17:32:41 --0500]
[somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) init rewrite
engine with requested uri /u/#1 test
127.0.0.1 - - [19/Feb/2008:17:32:41 --0500]
[somehostname.com/sid#7680e0][rid#aa10c8/initial] (3) applying pattern
'^/u/(.+)/*$' to uri '/u/#1 test'
127.0.0.1 - - [19/Feb/2008:17:32:41 --0500]
[somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) rewrite '/u/#1
test' -> '/index.html?user=#1 test'
127.0.0.1 - - [19/Feb/2008:17:32:41 --0500]
[somehostname.com/sid#7680e0][rid#aa10c8/initial] (3) split
uri=/index.html?user=#1 test -> uri=/main.cfm, args=user=#1 test
127.0.0.1 - - [19/Feb/2008:17:32:41 --0500]
[somehostname.com/sid#7680e0][rid#aa10c8/initial] (2) forcing
proxy-throughput with http://somehostname.com/index.html
127.0.0.1 - - [19/Feb/2008:17:32:41 --0500]
[somehostname.com/sid#7680e0][rid#aa10c8/initial] (1) go-ahead with
proxy request proxy:http://somehostname.com/index.html [OK]

This is not in .htaccess or <Directory>.

The rewrite rule is apparently doing exactly what you expect it to do.
You problem is probably with the index.html. You should see the
accesses to "/index.html?user=testing test" in your access log, and if
there is a problem with this file the error log is the place to start
looking.

Krist


127.0.0.1 - - [19/Feb/2008:17:30:51 -0500] "GET /index.html?user=testing test HTTP/1.1" 200 96570

So basically appache is not encoding the arguments when they're proxied. When it gets to index.html it just sees user=testing.
How do I make apache properly encode the arguments?

Russ

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