https://issues.apache.org/bugzilla/show_bug.cgi?id=51576
Bug #: 51576
Summary: mod_rewrite rule stopped working
Product: Apache httpd-2
Version: 2.2.17
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I recently updated Apache 2.2.6 > 2.2.17 (latest ubuntu server apt-get
release), and a rewrite rule stopped working.
Virtual host config:
RewriteRule
^/(images|javascripts|css|ssp|media)/(.*\.)v[0-9.]+\.(css|js|gif|png|jpg|swf)$
/$1/$2$3 [L]
URL accessed:
http://media.mysite.com/media/crotw/2011/2011-07-28_crotw_car.v6.30.jpg
The rewrite log shows the (correct) information:
0.0.0.0 - - [28/Jul/2011:11:54:35 --0500]
[media.mysite.com/sid#7fccf376d8c8][rid#7fccf422ece0/initial] (3) applying
pattern
'^/(images|javascripts|css|ssp|media)/(.*\.)v[0-9.]+\.(css|js|gif|png|jpg|swf)$'
to uri '/media/crotw/2011/2011-07-28_crotw_car.v6.30.jpg'
0.0.0.0 - - [28/Jul/2011:11:54:35 --0500]
[media.mysite.com/sid#7fccf376d8c8][rid#7fccf422ece0/initial] (2) rewrite
'/media/crotw/2011/2011-07-28_crotw_car.v6.30.jpg' ->
'/media/crotw/2011/2011-07-28_crotw_car.jpg'
0.0.0.0 - - [28/Jul/2011:11:54:35 --0500]
[media.mysite.com/sid#7fccf376d8c8][rid#7fccf422ece0/initial] (2) local path
result: /media/crotw/2011/2011-07-28_crotw_car.jpg
0.0.0.0 - - [28/Jul/2011:11:54:35 --0500]
[media.mysite.com/sid#7fccf376d8c8][rid#7fccf422ece0/initial] (1) go-ahead with
/media/crotw/2011/2011-07-28_crotw_car.jpg [OK]
However, I get a 404 error, and the error log shows:
[Thu Jul 28 12:07:57 2011] [error] [client 0.0.0.0] File does not exist:
/var/www/httpd/www.mysite.com/docs/media/crotw
Notice everything missing past the crotw part.
File permissions are OK, and I can copy/paste the go-ahead address in the
browser address bar and the image shows just fine. So, it appears that the
internal rewrite is not working in Apache any more, as it did in 2.2.6.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]