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 location with regex
- Using try_files
- Using nested locations
- Using open_file_cache to optimize file access
- Using NJs example (JS code file)
- Proxying websocket server with Nginx
- Proxy gRPC traffic with Nginx
- Redirect www to non-www
See more codes...