www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Osma Ahvenlampi ...@spray.fi>
Subject mod_rewrite/1744: 404 errors disappear through mod_rewrite
Date Fri, 30 Jan 1998 11:18:30 GMT

>Number:         1744
>Category:       mod_rewrite
>Synopsis:       404 errors disappear through mod_rewrite
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jan 30 03:20:00 PST 1998
>Originator:     oa@spray.fi
>Release:        1.2.5
oa@safir:oa % uname -a;cc -v
Linux safir.spray.fi 2.0.33 #2 Sun Dec 21 17:19:52 EET 1997 i686 unknown
Reading specs from /usr/lib/gcc-lib/i386-linux/
gcc version

pretty standard Apache install, except following extra modules have been added:
mod_jserv, mod_php, mod_php3 (with mysql support)
Given a ~user/.htaccess:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /~user
RewriteRule ^test notfound.html

and no file named notfound.html, I get:
% telnet localhost 80
GET /~user/test HTTP/1.0

HTTP/1.1 404 File Not Found
Date: Fri, 30 Jan 1998 11:05:34 GMT
Server: Apache/1.2.5
Connection: close
Content-Type: text/html

<TITLE>404 File Not Found</TITLE>
<H1>File Not Found</H1>
The requested URL /~user/notfound.html was not found on this server.<P>

However, the server log entry for this request will be: - - [30/Jan/1998:13:12:56 +0200] "GET /~user/test HTTP/1.0" 200 170 "-" "-"

Note that the hit is not logged as 404 Not Found, but as 200 OK.
Hopefully the above .htaccess will repeat it..

[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message