環境是windows,目前的配置就是這樣:
<code> 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; } </code>
抓取的頁面這樣顯示
環境是windows,目前的配置就是這樣:
<code> 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; } </code>
抓取的頁面這樣顯示
<code> 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; }</code>