open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

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

Open hudachui1224 opened this issue 1 year ago • 1 comments

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

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

hudachui1224 avatar Dec 03 '24 17:12 hudachui1224

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.

OpenIM-Robot avatar Dec 03 '24 17:12 OpenIM-Robot