https://github.com/babarot/nginx-config-tester
https://github.com/babarot/nginx-config-tester
nginx
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/babarot/nginx-config-tester
- Owner: babarot
- Created: 2017-11-17T10:31:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T10:38:44.000Z (over 8 years ago)
- Last Synced: 2024-12-12T05:07:37.972Z (over 1 year ago)
- Topics: nginx
- Language: Shell
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nginx-config-tester
===================
A docker repo for checking nginx.conf syntax quickly
## Usage
```console
$ git clone https://github.com/b4b4r07/nginx-config-tester
$ cd nginx-config-tester
$ ./run.sh /path/to/your_nginx.conf
Checking nginx.conf.j2 syntax...
2017/11/17 10:37:29 [emerg] 1#1: "upstream" directive is not allowed here in /etc/nginx/nginx.conf:10
nginx: [emerg] "upstream" directive is not allowed here in /etc/nginx/nginx.conf:10
nginx: configuration file /etc/nginx/nginx.conf test failed
```
## License
MIT
## Author
b4b4r07