Debugging Nginx Configuration
1 min read
- Authors
- Name
- Vijaykumar Rajendran
- @vijayrajendran_

Table of Contents
Debugging Configuration
Test Syntax
sudo nginx -t
Show Full Config
sudo nginx -T
Enable Debug Logs
error_log /var/log/nginx/error.log debug;
Check Directives
# List directive syntax
man nginx
# Verify specific config
grep -n "proxy_pass" /etc/nginx/nginx.conf
Reload and Check
sudo nginx -t
sudo systemctl reload nginx
sudo systemctl status nginx
Bugs found!