https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3191659576,3761251012&fm=26&gp=0.jpg
这张图片
宝塔的规则
#PROXY-START/
location ~* .(php|jsp|cgi|asp|aspx)$
{
proxy_pass https://ss0.bdstatic.com;
proxy_set_header 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 $remote_addr;
}
location /
{
proxy_pass https://ss0.bdstatic.com;
proxy_set_header 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 $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
add_header Cache-Control no-cache;
expires 12h;
}
#PROXY-END/
结果不成功
405 Not Allowed
JSP3/2.0.14
百度搜了还有个proxy_method GET;
强制将请求转换为GET试了还是不太行,大佬们求份规则
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…