宝塔后端接口地址貌似写死了。所以反代理不能添加应用前缀。我使用这种可以访问了:
- location / {
- proxy_pass http://127.0.0.1:11284;
- proxy_set_header Host $host;
- client_max_body_size 1024m;
- proxy_http_version 1.1;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'Upgrade';
- }
复制代码
|