views:

34

answers:

0

hi, please help me to convert this lighttpd rewrite expression to nginx

"^/static/(.*)" => "/static/$1",
"^/super/(.*\.html)(?:\?(.*))?" => "/yatasha_super.cgi?$2",
"^/(.*\.html)(?:\?(.*))?" => "/yatasha.cgi?$2"

i try to do like this

rewrite ^/static/(.*) /static/$1
rewrite ^/super/(.*\.html)(?:\?(.*))? /yatasha_super.cgi?$2
rewrite ^/(.*\.html)(?:\?(.*))? /yatasha.cgi?$2

but it don't work. thank you advance.