Apparent bug in rewrite (0.7.65)

mschipperheyn nginx-forum at
Sun Jan 2 22:58:29 MSK 2011


I have an apparent bug in nginx 0.7.65

My config
server {
	listen          80;
	root            /usr/share/apache-tomcat-6.0.24/webapps/ROOT/assets;
	rewrite ^/([^/]+)/(.*)	/$2;
	expires 90d;

My request
2011/01/02 19:51:52 [error] 5824#0: *18 open()
"/usr/share/apache-tomcat-6.0.24/webapps/ROOT/assets/style.css" failed
(2: No such file or directory), client: xxx, server:,
request: "GET /28/css/style.css HTTP/1.1", host: ""

>From this it looks like
gets munged to 
when it should be

On apache this works fine and I checked the regex on which suggests it's just fine.

Any suggestions?

Kind regards,


Posted at Nginx Forum:,162935,162935#msg-162935

More information about the nginx mailing list