nginx域名重定向配置
server
{
listen 80;
server_name sec.xxxxxx.com;
index index.html index.htm index.php;
rewrite ^/(.*)$ http://anquan.xxxxxxx.com/$1 permanent;
#root /;
}
server
{
listen 80;
server_name sec.xxxxxx.com;
index index.html index.htm index.php;
rewrite ^/(.*)$ http://anquan.xxxxxxx.com/$1 permanent;
#root /;
}