Hello.
I'm having a problem with nginx's rewrite directive.
Basically, when the URL contains a trailing point, it is ignored by the
rewrite regexp.
Let's do an example:
I load http://uri/something. (with the trailing point). Then, with the
rewrite rule:
rewrite ^/something\.$ /index.html
I should see 'index.html', but instead that appears in the logfile (with
rewrite_log set at on):
2013/05/22 20:36:07 [notice] 6256#1440: *57 "^/something\.$" does not
match "/something", client: 127.0.0.1, server: localhost, request: "GET
/something. HTTP/1.1", host: "localhost"
As you can see, the trailing point is missing from the "does not match"
part of the log.
Is there any workaround for that?
Thank you in advance,
Robertof
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
I'm having a problem with nginx's rewrite directive.
Basically, when the URL contains a trailing point, it is ignored by the
rewrite regexp.
Let's do an example:
I load http://uri/something. (with the trailing point). Then, with the
rewrite rule:
rewrite ^/something\.$ /index.html
I should see 'index.html', but instead that appears in the logfile (with
rewrite_log set at on):
2013/05/22 20:36:07 [notice] 6256#1440: *57 "^/something\.$" does not
match "/something", client: 127.0.0.1, server: localhost, request: "GET
/something. HTTP/1.1", host: "localhost"
As you can see, the trailing point is missing from the "does not match"
part of the log.
Is there any workaround for that?
Thank you in advance,
Robertof
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx