search

Home  >  Q&A  >  body text

rewrite - How to debug secondary directory redirection in nginx?

When performing secondary directory redirection in nginx, it keeps reporting 404. I don’t know how to change it. Is there any way to debug nginx redirection?

習慣沉默習慣沉默2792 days ago511

reply all(1)I'll reply

  • 某草草

    某草草2017-05-16 17:19:07

    1. Check the logs to determine what files are actually accessed by the server.

    2. ls <file>, confirm whether the file exists and eliminate configuration errors caused by manual errors.

    3. Check the documentation to make sure the configuration is correct.

    reply
    0
  • Cancelreply