rewrite - How to debug secondary directory redirection in nginx?
習慣沉默2017-05-16 17:17:07
0
1
485
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?
Check the logs to determine what files are actually accessed by the server.
ls <file>, confirm whether the file exists and eliminate configuration errors caused by manual errors.
Check the documentation to make sure the configuration is correct.