Nginx: Difference between revisions
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
Check whether debugging was enabled at compile time: <code>nginx -V 2>&1 | grep -- '--with-debug'</code> If the binary is not built for debugging, then you will not be able to see any debug log messages in the log file, and you won't be able to generate a core-dump or config dump as described at [https://docs.nginx.com/nginx/admin-guide/monitoring/debugging/ Debugging]. | Check whether debugging was enabled at compile time: <code>nginx -V 2>&1 | grep -- '--with-debug'</code> If the binary is not built for debugging, then you will not be able to see any debug log messages in the log file, and you won't be able to generate a core-dump or config dump as described at [https://docs.nginx.com/nginx/admin-guide/monitoring/debugging/ Debugging]. | ||
== File Not Found == | |||
I kept getting 404's and one possibility to eliminate is whether or not your server has read access to the filesystem. You can check with: | |||
<source lang="bash"> | |||
# -H for set 'home' from /etc/password | |||
# -lmo for long, mode, owners | |||
sudo -H -u nginx namei -lmo /var/www/mediawiki | |||
</source> | |||
== Other resources == | == Other resources == | ||