Nginx 错误:'try_files' 指令使用错误
This error occurs when the 'try_files' directive is used in a location where it is not allowed in the Nginx configuration file.
To fix this error, you need to move the 'try_files' directive to a valid location. The 'try_files' directive should only be used within a 'location' block.
For example, you can move the 'try_files' directive to a location block like this:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
Make sure to reload or restart Nginx after making changes to the configuration file.
原文地址: https://www.cveoy.top/t/topic/n4j5 著作权归作者所有。请勿转载和采集!