环境是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-Forward<i>1本文来#源gaodai$ma#com搞$代*码*网</i><pre>搞代gaodaima码
ed-For $proxy_add_x_forwarded_for; }
抓取的页面这样显示
<link rel=”stylesheet” href=”/Public/Home/css/index.css” />
回复内容:
环境是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>
抓取的页面这样显示
<link rel=”stylesheet” href=”/Public/Home/css/index.css” />
<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>