nginx.config配置与重启
1.首页路径配置
location / {
root /root/publish/MALLINDEX;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
2.重启(有sbin的目录)
cd /user/sbin
./nginx -s reload
1.首页路径配置
location / {
root /root/publish/MALLINDEX;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
2.重启(有sbin的目录)
cd /user/sbin
./nginx -s reload