server
{
listen 80;
#listen [::]:80;
server_name www.jianghaodong.top ;
index index.html index.htm index.php default.html default.htm default.php;
root /www/jianghaodong.top;
#include rewrite/thinkphp.conf;
error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php-pathinfo.conf;
location /{
limit_req zone=req_zone;
}
location ~ .*\.(php|php5)?$ {
limit_req zone=req_zone;
}
location ~ ^/admin.html{
root /www/jianghaodong.top/admin.html;
deny 119.130.71.11;
allow all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /myserver/log/nginx/jianghaodongtop.log main;
}