2019/04/05 20:46:51 [error] 1256#4204: *10 directory index of "C:/Users/Think/xiangmu/xcEduUI01/xc-ui-pc-static-portal" is forbidden, client: 127.0.0.1, server: www.xuecheng.com, request: "GET / HTTP/1.1", host: "localhost"
原因:文件目录少了斜杠
server{
listen 80;
server_name www.xuecheng.com;
ssi on;
ssi_silent_errors on;
location / {
alias C:/Users/Think/xiangmu/xcEduUI01/xc-ui-pc-static-portal;
index index.html index.htm;
}
}
server{
listen 80;
server_name www.xuecheng.com;
ssi on;
ssi_silent_errors on;
location / {
alias C:/Users/Think/xiangmu/xcEduUI01/xc-ui-pc-static-portal/;
index index.html index.htm;
}
}