On Sep 2, 2008, at 6:54 AM, Eric Covener wrote:
On Tue, Sep 2, 2008 at 6:20 AM, Jason Pruim <japruim@xxxxxxxxxx> wrote:RewriteEngine on RewriteLog "/var/log/httpd/rewrite.log" RewriteLogLevel 9 RewriteRule /(.*) p.php?purl=$1Outside of directory/location/htaccess, you have to rewrite to an absolute path, IOTW starting with a slash. This current rule should trigger a 400.
Okay, so I went and changed the rewrite rule to: RewriteRule /(.*) / p.php?purl=$1
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]
I even tried specifiying the whole web path to the script with no luck...
-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim@xxxxxxxxxx --------------------------------------------------------------------- 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