On Sep 2, 2008, at 8:01 AM, Krist van Besien wrote:
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 withrequested 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 '/ (.*)' touri '/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 '.*' touri '/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.php127.0.0.1 - - [02/Sep/2008:07:06:14 -0400][127.0.0.1/sid#1802648][rid#1836238/initial] (2) prefixed with document_rootto /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.
I did alot more scrolling and paying attention to the httpd.conf file and I found this entry that I added to:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] #added by Jason 9.2.08 RewriteLog "/var/log/httpd/rewrite.log" RewriteLogLevel 9 RewriteCond %{QUERY_STRING} purl=(.*)RewriteRule ^/(.*) "http://www.raoset.com/dev/schreurprinting.com/p.php?purl= %1"
</IfModule>From what I can tell the /server-status is something that my admin program uses to find out what services are running at least that's what I think if I understand this correctly:
<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>I really didn't think that Apple did that much customization to apache and the apache conf... But I should add now that the version of apache I'm running came on a Apple Mac OS X Server 1.4 Tiger system.
-- 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