proxy_set_header X-Static-Token "ailunnb666";
proxy_pass http://hdx.toonb.cc;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $host;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;
set $static_fileMJrCAYTq 0;
if ($uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$") {
set $static_fileMJrCAYTq 1;
expires 1m;
}
if ($static_fileMJrCAYTq = 0) {
add_header Cache-Control no-cache;
}
}
include enable-php-pathinfo.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
location / {
return 301 https://$host$request_uri;
}
access_log off;
}各位有相关服务的可以排查下。真是离谱啊