Re: mod_rewrite question

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

 



On Tue, Sep 2, 2008 at 13:12, Jason Pruim <japruim@xxxxxxxxxx> wrote:

> and this is my log file entry:
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (2) init rewrite engine with
> requested uri /server-status
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (3) applying pattern '/(.*)' to
> uri '/server-status'
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (2) rewrite /server-status ->
> /p.php?purl=server-status
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (3) split
> uri=/p.php?purl=server-status -> uri=/p.php, args=purl=server-status
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (3) applying pattern '.*' to
> uri '/p.php'
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (4) RewriteCond: input='GET'
> pattern='^TRACE' => not-matched
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (2) local path result: /p.php
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (2) prefixed with document_root
> to /tmp/p.php
> 127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
> [127.0.0.1/sid#1802648][rid#1836238/initial] (1) go-ahead with /tmp/p.php
> [OK]

You asked for /server-status and it got rewritten to
/tmp/p.php?purl=/server-status. Is this what you wanted or not?

It looks like you are attempting to rewrite your URL twice. Are you
sure you have nothing lingering around somewhere? That "RewriteCond"
must come from somewhere.


Krist

-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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