nginxHow to validate config
Usage example
nginx -t
output
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Related
More of Nginx
- Using x-frame-options header
- Using try_files
- Using NJs example (JS code file)
- Reload configuration without connections dropping
- Using regex in map
- Install NJS (Nginx Javascript) module in Ubuntu 22.04
- Using NJs example
- Check if configuration is correct
- Redirect www to non-www
- Using Python app with Nginx
See more codes...