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-request-id header
- Using regex in map
- Using open_file_cache to optimize file access
- Using NJs example
- Using nested locations
- Using if else condition
- Using multiple locations
- Using location with regex
- Reload configuration without connections dropping
- Using x-frame-options header
See more codes...