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
- Increase max upload file size
- How to use location config
- Access log in JSON format
- Using try_files
- How to block user agent
- Redirect www to non-www
- Using open_file_cache to optimize file access
- Using NJs example (JS code file)
- How to redirect entire domain to another domain
- Using regex in map
See more codes...