网站建设需求调查问卷,哪家手表网站,公司网站设计需要什么,建设部网站有项目经理资质查询系统遇到的问题#xff1a;服务器可以访问到的地址#xff0c;我本地代码无法访问到
在服务器上装好nginx#xff0c;在nginx配置文件nginx.conf中配置本地想要链接对应的服务器端口信息
server {listen 8101;location / {proxy_http_version 1.1;proxy_set_header Upgrade $h…遇到的问题服务器可以访问到的地址我本地代码无法访问到
在服务器上装好nginx在nginx配置文件nginx.conf中配置本地想要链接对应的服务器端口信息
server {listen 8101;location / {proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection upgrade;proxy_pass http://121.37.69.240:31013;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;}}
加好这个代理后本地代码就可以访问了