Welcome! Log In Create A New Profile

Advanced

Re: Problems with some rewrite

August 24, 2010 04:45AM
I've simplified the last rule a bit, to see where the problem might be.

[code]
rewrite "^/img/default/([0-9] {3})([0-9] {3})/(.*)\.(gif|jpg|jpeg|png|tiff|bmp)$" http://www.google.com break;
->
rewrite "^/img/default/(.*)/(.*)\.(gif|jpg|jpeg|png|tiff|bmp)$" http://www.google.com break;
[/code]

So i replaced (-?[0-9] {3})(-?[0-9] {3})(-?[0-9]+) with (.*), and now the rule works. So the problem is here: (-?[0-9] {3})(-?[0-9] {3})(-?[0-9]+)

I took/adapted this rule from http://wiki.nginx.org/NginxHttpRewriteModule#rewrite , but for some (to me unknown) reasons it isn't working. Any idea?

well, nginx version: 0.6.32, debian lenny.
Subject Author Posted

Problems with some rewrite

revirii August 24, 2010 03:15AM

Re: Problems with some rewrite

revirii August 24, 2010 04:45AM

Re: Problems with some rewrite

Igor Sysoev August 24, 2010 08:32AM

Re: Problems with some rewrite

revirii August 24, 2010 08:52AM

Re: Problems with some rewrite

revirii August 24, 2010 10:10AM

Re: Problems with some rewrite

Igor Sysoev August 24, 2010 06:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready