1、创建反向代理运行环境;
2、创建反向代理网站;
3、配置反向代理;
location / {
resolver 114.114.114.114 8.8.8.8;
proxy_pass $scheme://www.abc.com:$server_port;
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;
proxy_set_header X-Nginx-Proxy true;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
client_max_body_size 1000M;
}
}
最后于 1月前 被奇梦编辑 ,原因: 更新!