1、
这是根据实际情况来写的。
location /h5/activity/wechat/ {
index index.html index.htm index.php;
try_files $uri $uri/ /h5/activity/wechat/index.html;
}
这是项目直接放在根目录下的情况。
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.html;
}