Nginx Rewrite Apache?

Adrian Janeczek nginx-forum at nginx.us
Tue Apr 12 01:19:23 MSD 2011


Hi
I have problem with rewrite from apache
RewriteEngine On 

RewriteRule
^[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

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;
This rule dosent work... 
Problem is { }
On apache this work 
http://xx.xx.xx/QJNqq0821sxz7200DAp0/Si.s_sred.iowi.cze.part5.rar
rewriting to
to http://xx.xx.xx/files/Si.s_sred.iowi.cze.part5.rar but 
http://xx.xx.xx/dsadasdaddsads/Si.s_sred.iowi.cze.part5.rar  musnt not
work

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,190307,190307#msg-190307




More information about the nginx mailing list