• 本帖最后由 哈P哥 于 2012-9-18 21:24 编辑 *

比如这个 http://www.xxx.com/read.php?tid=801922&fpage=0&toread=&page=1 就访问不了,求替换成
http://www.xxx.com/htm_data/7/1209/801922.html 的subs_filter的替换方法

反代就是替换不了。求替换方法。

17149
就是图片里《 这个我点一下就返回原网址了,点其他的12345都正常的
我加了以下这些都不行哇。。。
server
{

listen 443;
server_name www.自己的.com;
index index.html index.htm index.php;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
location /
{
proxy_redirect off;
subs_filter 'www.目标.com' 'www.自己的.com' gi;
subs_filter '[\s\S]*?' '' gi;
subs_filter '[\s\S]*?' '' gi;
subs_filter '[\s\S]*?' '' gi;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Referer http://www.目标.com;
proxy_set_header Host www.目标.com;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://www.目标.com;
proxy_set_header Accept-Encoding "";
}
access_log off;
}