配置静态站点,有些时候需要返回固定页面,访问url: /site/pageA /site/pageB 都返回index.html页面,这时候需要用到下面配置
location / { try_files $uri /index.html; }
最后更新于4年前
这有帮助吗?