因为只有一个域名, 所以想使用 nginx 代理二级目录, index 文件在 D:\soft\phpstudy_pro\WWW\ww.sc-one.com\sc-admin\index.html
配置文件
server {
listen 9003;
server_name _;
location /sc-admin {
alias "D:/soft/phpstudy_pro/WWW/www.sc-one.com/sc-admin/";
try_files $uri $uri/ index.html;
index index.html;
}
}
但是访问 localhost:9003/sc-admin 404 请问是哪里有问题
配置文件
server {
listen 9003;
server_name _;
location /sc-admin {
alias "D:/soft/phpstudy_pro/WWW/www.sc-one.com/sc-admin/";
try_files $uri $uri/ index.html;
index index.html;
}
}
但是访问 localhost:9003/sc-admin 404 请问是哪里有问题