用nginx做代理 配置文件如下:
```
server {
listen 80;
server_name leechan.online;
location / {
proxy_pass http://127.0.0.1:8888;
proxy_http_version 1.1;
#proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
access_log /home/wwwlogs/leechan.online.access.log;
}
```
但是经常出现404的情况,是非常频繁出现。
IP访问:http://117.50.7.147:8888
域名访问:http://leechan.online
各位大佬能指教一下是什么问题吗