nginx反向代理少了这个:
proxy_set_header Host $host;
fprs的服务器上的nginx 配置改为
server {
listen 80;
server_name _;
index index.htm index.html;
location / {
proxy_pass http://frps;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
error_log /var/log/nginx/frps.error.log;
access_log /var/log/nginx/frps.access.log;
}
}
本文介绍了一种常见的Nginx反向代理配置方法,特别强调了proxy_set_header指令的重要性,并提供了一个具体的配置示例。
1270





