Rewrite migration from apache.

Matteo Niccoli matteo.niccoli at
Tue Feb 19 12:37:36 MSK 2008


I'm migrating some sites from apache 2.0 to nginx. I have problems with
this rewrite:

RewriteRule ^([^/]{2,})/$ home.php?key=$1

I have changed to:

rewrite ^([^/]{2,})/$ home.php?key=$1 last;

but when I make a checkconfig, nginx output this:

directive "rewrite" is not terminated by ";" in /etc/nginx/nginx.conf:

Seems that {2,} is not accepted from nginx. Can anybody explain me
how can I solve this?


More information about the nginx mailing list