nginx域名重定向配置

server  
{
    listen 80;
    server_name sec.xxxxxx.com;
    index index.html index.htm index.php;
    rewrite  ^/(.*)$  http://anquan.xxxxxxx.com/$1  permanent;
    #root /;
}

郝先生

继续阅读此作者的更多文章