我下了份dz的代码,查看表单验证函数后发现是
preg_replace("/https?:\/\/([^\:\/]+).*/i", "\\1", $_SERVER['HTTP_REFERER']) == preg_replace("/([^\:]+).*/", "\\1", $_SERVER['HTTP_HOST'])
这个判断没通过,所以将配置文件修改为如下即可:
server {
listen 80;
server_name mjj.party www.mjj.party;
index index.html index.htm index.php;
access_log off;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Referer http://www.205205.xyz/;
proxy_set_header Host www.205205.xyz;
proxy_set_header Cookie $http_cookie;
proxy_pass http://www.205205.xyz;
subs_filter_types text/html text/css text/xml;
subs_filter www.205205.xyz mjj.party;
subs_filter 205205.xyz mjj.party;
}
} |