server
{
listen 80;
server_name bcgx.work;
location / {
index login.html login.htm index.php;
root /www/server/front;
}
location /sc {
index login.html login.htm index.php;
alias /www/server/front;
}
location /dc {
index login.html login.htm index.php;
alias /www/server/front;
}
access_log /www/wwwlogs/access.log;
}
2.一定要注意 root /www/server/front; 和 alias /www/server/front; root 路径只能配置一个 ,alias 可以配置多个
标签:index,www,alias,后缀,server,nginx,域名,front,login From: https://www.cnblogs.com/wanqiang/p/16940025.html