时间:2021-07-01 10:21:17 帮助过:59人阅读
location / {
root html;
index index.html index.htm;
}
location /baidu {
proxy_pass http://localhost:97;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
抓取的页面这样显示
环境是windows,目前的配置就是这样:
location / {
root html;
index index.html index.htm;
}
location /baidu {
proxy_pass http://localhost:97;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
抓取的页面这样显示
root "网站路径";
location / {
index index.html index.htm;
}
location /baidu {
proxy_pass http://localhost:97;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}