java - Nginx 如何配置所有 URL 都指向一个HTML
PHPz
PHPz 2017-04-18 09:31:27
0
2
588

必须在不使用重定向的情况下

  • 例如:https://www.xxx.com/asda/asdas/asda 返回 index.html

  • 例如:https://www.xxx.com/ss/ss/assd 返回 index.html

但是排除以 https://www.xxx.com/api/v1的请求

PHPz
PHPz

学习是最好的投资!

reply all(2)
黄舟

location / {

rreee

}
location api/v1 {

rreee

}

左手右手慢动作

It doesn’t seem possible without using rewrite.
404 file specified as index.html?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template