server {
listen 80;
server_name XXX.com;
# 靜態項目一
location /{
# 靜態項目文件路徑
root /webapp/app/yao_authpage/authorization;
index authorization.html index.htm;
}
# 靜態項目二
location /qyauth/{
# 靜態項目文件路徑
alias /webapp/app/qy_authorization/;
index authorization.html index.htm;
}
}
配完后需要重啟!
完畢 !