Debugging Nginx Configuration

1 min read

Authors
banner

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!

© 2025 Vijay Rajendran