The environment is windows. the current configuration is as follows: Workshop & quot; & amp; gt; the environment is windows. the current configuration is as follows:
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; }
The crawled page is displayed as follows:
Reply content:
The environment is windows. the current configuration is as follows:
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; }
The crawled page is displayed as follows:
Root "website path"; 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 ;}