Welcome! Log In Create A New Profile

Advanced

Re: how to fix the rewrite rule?

Elena Zwetkow
July 19, 2012 05:14AM
Hello andi,

your solution looks a bit like my question from last
night... i use md5 hash to build my filenames, what
kind of hash do you use? 20 chars look intresing :)
are these unique hashes?

Elena


-------- Original-Nachricht --------
> Datum: Thu, 19 Jul 2012 04:32:47 -0400 (EDT)
> Von: "21andy" <nginx-forum@nginx.us>
> An: nginx@nginx.org
> Betreff: how to fix the rewrite rule?

> this works fine
> rewrite "^/([a-f0-9]{2})([a-f0-9]{18})\.(jpg|png|gif)$"
> /test.php?a=$1&b=$2&c=$3 last;
>
> open /a669164f02f6fdc18f.jpg
>
> test.php would output
> Array ( [a] => ad [b] => a669164f02f6fdc18f [c] => jpg )
>
> but this DO NOT WORK
> rewrite "^/([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{14})\.(jpg|png|gif)$"
> /test.php?a=$1&b=$2&c=$3 last;
> it return 404 error
>
> how can i fix this?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,228725,228725#msg-228725
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to fix the rewrite rule?

21andy July 19, 2012 04:32AM

Re: how to fix the rewrite rule?

Francis Daly July 19, 2012 04:50AM

Re: how to fix the rewrite rule?

Elena Zwetkow July 19, 2012 05:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready