mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 11:40:22 +00:00
24 lines
554 B
Text
24 lines
554 B
Text
server {
|
|
listen 8080 default_server;
|
|
listen [::]:8080 default_server ipv6only=on;
|
|
|
|
root {ROOT}/www;
|
|
|
|
access_log {DIR}/tmp/access.log;
|
|
error_log {DIR}/tmp/error.log;
|
|
|
|
# Block Bad Bots
|
|
include {DIR}/nginx/bots.d/blockbots.conf;
|
|
include {DIR}/nginx/bots.d/ddos.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;
|
|
}
|
|
|
|
}
|