openimsdk / open-im-server

IM Chat ChatGPT
https://openim.io
Apache License 2.0
14.14k stars 2.5k forks source link

[BUG] openim-web-front openim-admin-front net::ERR_ABORTED 404 (Not Found) #2916

Open hudachui1224 opened 20 hours ago

hudachui1224 commented 20 hours ago

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)

  1. user http://ip:11001/#/login http://ip:11002/login it good , i can access web site both .
  2. but use nginx proxy ,i cannot access. https://web.imtest.com image

https://admin.imtest.com

image

3. 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

OpenIM-Robot commented 20 hours ago

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.