Recall & Review
beginner
What is the purpose of enabling debug mode in nginx?
Debug mode in nginx helps to log detailed information about requests and internal processing. This helps find and fix problems in configuration or performance.
Click to reveal answer
beginner
How do you enable debug mode in nginx configuration?
Add the directive
error_log /path/to/log debug; in the nginx configuration file to enable detailed debug logging.Click to reveal answer
beginner
Where does nginx write debug logs when debug mode is enabled?
Nginx writes debug logs to the file specified in the
error_log directive with the debug level.Click to reveal answer
beginner
What is a common command to test nginx configuration before enabling debug mode?
Use
nginx -t to test the configuration syntax and catch errors before restarting nginx with debug mode.Click to reveal answer
intermediate
Why should debug mode be used carefully in production?
Debug mode generates very detailed logs that can slow down nginx and fill disk space quickly. It is best used temporarily for troubleshooting.
Click to reveal answer
Which directive enables debug logging in nginx?
✗ Incorrect
The
error_log directive with the debug level enables debug logging in nginx.What command checks nginx configuration syntax before enabling debug mode?
✗ Incorrect
The
nginx -t command tests the configuration syntax without starting nginx.Where are debug logs written when debug mode is enabled?
✗ Incorrect
Debug logs are written to the error log file specified in the configuration.
Why should debug mode be disabled after troubleshooting?
✗ Incorrect
Debug mode creates detailed logs that can slow nginx and fill disk space quickly.
Which log level is required to see debug messages in nginx?
✗ Incorrect
The
debug log level enables detailed debug messages.Explain how to enable and use debug mode in nginx for troubleshooting.
Think about the steps from configuration to checking logs and then turning off debug mode.
You got /6 concepts.
Describe the risks of leaving debug mode enabled in a production nginx server.
Consider what happens when too much logging is done on a live server.
You got /5 concepts.