If applicable, add screenshots to help explain your problem.
Copy of nginx.conf
If applicable please paste your nginx.conf file here
(paste in between the markers)
Paste nginx.conf here
Copy of vhost / website / host .conf file
If applicable please paste your site/vhost configuration file in between the code ticks
(paste in between the markers)
Paste site config here
Server (please complete the following information):
Operating System:
[ ] Ubuntu
[ ] Alpine
[ ] Arch Linux
[X ] Debian
[ ] CentOS
[ ] Fedora
[ ] Deepin
[ ] Windows
[ ] Other
Specify Exact Version of OS:
Post output of uname -a here
```3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux
- Nginx Version [post output of sudo nginx -v]
```nginx version: nginx/1.10.3
Paste output of `sudo nginx -V` here (paste in between the ``` ``` markers)
Other Environments [include Version information]
[ ] Plesk
[ ] CPanel
[ ] Synology NAS
[ ] Other
Specify Other / Specific Version Information Here:
Any other applicable log / error messages that may help us to help you.
Paste any log / error messages here (paste in between the ``` ``` markers)
Describe the bug
Installed the application. Setup run. No configs changed. Added: include /etc/nginx/bots.d include /etc/nginx/conf.d at the top of nginx config file.
Error shown restarting nginx:
nginx: [emerg] "if" directive is not allowed here in /etc/nginx/bots.d/blockbots.conf:58
Nginx version: nginx -v nginx version: nginx/1.10.3
To Reproduce
Same as bug reporting.
Expected behavior
Nginx restarted without errors .
Screenshots
If applicable, add screenshots to help explain your problem.
Copy of nginx.conf
If applicable please paste your nginx.conf file here (paste in between the
markers)
Copy of vhost / website / host .conf file
If applicable please paste your site/vhost configuration file in between the code ticks (paste in between the
markers)
Server (please complete the following information):
Operating System:
[ ] Ubuntu
[ ] Alpine
[ ] Arch Linux
[X ] Debian
[ ] CentOS
[ ] Fedora
[ ] Deepin
[ ] Windows
[ ] Other
Other Environments [include Version information]
[ ] Plesk
[ ] CPanel
[ ] Synology NAS
[ ] Other
Specify Other / Specific Version Information Here:
Any other applicable log / error messages that may help us to help you.
Additional information
Add any other context about the problem here.