www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Baverstock <warw...@mmm.co.uk>
Subject mod_rewrite/777: RewriteRule ... ... [R=permanent] only performs a 302 Temporary
Date Tue, 24 Jun 1997 11:10:01 GMT

>Number:         777
>Category:       mod_rewrite
>Synopsis:       RewriteRule ... ... [R=permanent] only performs a 302 Temporary
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jun 24 04:10:01 1997
>Originator:     warwick@mmm.co.uk
>Organization:
apache
>Release:        1.2(final)
>Environment:
Linux stoat.mmm.co.uk 2.0.18 #1 Tue Sep 10 10:15:48 EDT 1996 i486
>Description:
I called this `serious' because while it behaves usefully, it's not doing
what the docs say, and its functionality is reduced. (Don't webcrawlers
tend to update records which claim to be permanent deletions?)

In access.conf, for the whole server (not in a virtualhost directive):
RewriteEngine on
RewriteLog logs/rewrite_log
RewriteLogLevel 9
RewriteRule ^/w/(.*)$ http://www.mmm.co.uk/~warwick/$1 [R=permanent]

# /etc/rc.d/init.d/httpd stop; /etc/rc.d/init.d/httpd start
...
# telnet stoat 80
Trying 194.200.167.3...
Connected to stoat.mmm.co.uk.
Escape character is '^]'.
GET /w/ HTTP/1.0

HTTP/1.1 302 Moved Temporarily
Date: Tue, 24 Jun 1997 10:50:11 GMT
Server: Apache/1.2.0
Location: http://www.mmm.co.uk/~warwick/
...

In logs/rewrite_log:
stoat.mmm.co.uk - - [24/Jun/1997:11:46:51 +0100] [stoat.mmm.co.uk/sid#808dacc][r
id#809e3ec/initial] (2) init rewrite engine with requested uri /w/
stoat.mmm.co.uk - - [24/Jun/1997:11:46:51 +0100] [stoat.mmm.co.uk/sid#808dacc][r
id#809e3ec/initial] (2) rewrite /w/ -> http://www.mmm.co.uk/~warwick/
stoat.mmm.co.uk - - [24/Jun/1997:11:46:51 +0100] [stoat.mmm.co.uk/sid#808dacc][r
id#809e3ec/initial] (1) escaping http://www.mmm.co.uk/~warwick/ for redirect
stoat.mmm.co.uk - - [24/Jun/1997:11:46:51 +0100] [stoat.mmm.co.uk/sid#808dacc][r
id#809e3ec/initial] (1) redirect to http://www.mmm.co.uk/~warwick/ [REDIRECT/302
]

>How-To-Repeat:
You can ask stoat.mmm.co.uk:80 for things during UK working hours. :)
>Fix:

>Audit-Trail:
>Unformatted:



Mime
View raw message