mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 11:10:47 +00:00
- Preparations for introducing generator scripts and further enhancements to the Bot Blocker - Better tracking of Release Tags and Build Numbering
23 lines
513 B
Text
23 lines
513 B
Text
server {
|
|
listen 8080 default_server;
|
|
listen [::]:8080 default_server ipv6only=on;
|
|
|
|
root {ROOT}/www;
|
|
|
|
access_log /tmp/access.log;
|
|
error_log /tmp/error.log;
|
|
|
|
# Block Bad Bots
|
|
include ddos.conf;
|
|
include blockbots.conf;
|
|
|
|
location ~* "\.php(/|$)" {
|
|
include fastcgi.conf;
|
|
fastcgi_pass php;
|
|
}
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then as directory, then fall back to index.html.
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|