Nginx Rewrite Apache?

Steve steeeeeveee at gmx.net
Tue Apr 12 02:09:00 MSD 2011


-------- Original-Nachricht --------
> Datum: Mon, 11 Apr 2011 17:59:01 -0400
> Von: "Adrian Janeczek" <nginx-forum at nginx.us>
> An: nginx at nginx.org
> Betreff: Re: Nginx Rewrite Apache?

> dosen't  work
> http://s1.rapidox.pl/QJNqq0821sxz7200DAp0/Si.s_sred.iowi.cze.part5.rar
> 
> http://s1.rapidox.pl/files/Si.s_sred.iowi.cze.part5.rar
> 
> rewrite >
> rewrite "^[A-Z]{3}[a-z]{2}\d{4}[a-z]{3}\d{4}[A-Z]{2}[a-z]\d/(.+)$"
> files/$1;
> 
> i trying this but not work...
> rewrite "([A-Z] {3})([a-z] {2})([0-9] {4})([a-z] {3})([0-9] {4})([A-Z]
> {2})([a-z] {1})([0-9] {1})/(.+)$" /files/$1 last;
> 
What is that space before the curly brackets? Remove them!
rewrite "^/(?:[A-Z]{3})(?:[a-z]{2})(?:[0-9]{4})(?:[a-z]{3})(?:[0-9]{4})(?:[A-Z]{2})(?:[a-z]{1})(?:[0-9]{1})/(.+)$" /files/$9 last;


> http://pastebin.com/raw.php?i=HZZBStcd
> 
Ohhh boy. Location block inside another location block?


> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,190307,190326#msg-190326
> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx

-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl



More information about the nginx mailing list