Can nginx do this?

lhmwzy lhmwzy at gmail.com
Fri Aug 7 11:10:10 MSD 2009


        if ($http_host ~* "^((?!www).*)\.afen\.com$") {
                set $name $1;
                rewrite ^ http://www.afen.com/$name$uri;
}

this can works.





More information about the nginx mailing list