search

Home  >  Q&A  >  body text

java - Nginx 如何配置所有 URL 都指向一个HTML

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

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

PHPzPHPz2905 days ago580

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-18 09:33:27

    location / {

    rreee

    }
    location api/v1 {

    rreee

    }

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:33:27

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

    reply
    0
  • Cancelreply