open-im-server
open-im-server copied to clipboard
[BUG] openim-web-front openim-admin-front net::ERR_ABORTED 404 (Not Found)
OpenIM Server Version
3.8.2
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
openim-web-front openim-admin-front use ngin proxy cannot access,all js css file is net::ERR_ABORTED 404 (Not Found)
- user http://ip:11001/#/login http://ip:11002/login it good , i can access web site both .
- but use nginx proxy ,i cannot access.
https://web.imtest.com
https://admin.imtest.com
my nginx config :
upstream pc_web{ #PC web address can be validate server 127.0.0.1:11001; } upstream openim_admin{ #Admin backend address can be used for validation server 127.0.0.1:11002; }
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://pc_web/;
}
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://openim_admin/;
}
why ? pless help me
Screenshots Link
No response
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
Join slack 🤖 to connect and communicate with our developers.