httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] mod_rewrite question
Date Tue, 02 Sep 2008 12:01:13 GMT
On Tue, Sep 2, 2008 at 13:12, Jason Pruim <japruim@raoset.com> 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@gmail.com
krist@vanbesien.org
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@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