[GH-ISSUE #3328] 3x-ui nginx white screen #2255

Closed
opened 2026-10-31 20:24:16 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kasrabt on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3328

Describe the bug

When I want to Locate Panel with nginx Like this => localhost:2000/asdkawekaek
white page comes up
js not loaded
css not loaded
vue js not defiend
what can i do ?

How to repeat the problem?

.

Expected action

No response

Received action

No response

3x-ui Version

latest

Xray-core Version

latest

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @kasrabt on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3328 ### Describe the bug When I want to Locate Panel with nginx Like this => localhost:2000/asdkawekaek white page comes up js not loaded css not loaded vue js not defiend what can i do ? ### How to repeat the problem? . ### Expected action _No response_ ### Received action _No response_ ### 3x-ui Version latest ### Xray-core Version latest ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:24:16 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@FEJackFly commented on GitHub (Aug 8, 2025):

me too

<!-- gh-comment-id:3166341469 --> @FEJackFly commented on GitHub (Aug 8, 2025): me too
Author
Owner

@TLCFEM commented on GitHub (Aug 8, 2025):

You shall disable redirecting requests to /asdkawekaek and use root path for initial startup.
After setting the proper URI path under panel settings, restart the panel and enable redirecting in nginx.

Image
<!-- gh-comment-id:3169530120 --> @TLCFEM commented on GitHub (Aug 8, 2025): You shall disable redirecting requests to `/asdkawekaek` and use root path for initial startup. After setting the proper URI path under panel settings, restart the panel and enable redirecting in nginx. <img width="490" height="81" alt="Image" src="https://github.com/user-attachments/assets/897b3c94-7ab2-4480-a2c2-4e9bc1ee53ff" />
Author
Owner

@TLCFEM commented on GitHub (Aug 9, 2025):

Here is a MWE.

nginx.conf

events {}

http {
  server {
    listen 80;

    location / { # replace this line with the following line only after setting the URI path in panel!
      # location /some-path/ {
      proxy_pass http://3xui:2053;
      proxy_http_version 1.1;
      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;
    }
  }
}

docker-compsoe.yaml

services:
  3xui:
    image: ghcr.io/mhsanaei/3x-ui:latest
    container_name: 3xui
    volumes:
      - ./3xui/db/:/etc/x-ui/
      - ./3xui/cert/:/root/cert/
    environment:
      XRAY_VMESS_AEAD_FORCED: "false"
      XUI_ENABLE_FAIL2BAN: "true"
    tty: true
    restart: always
  nginx:
    image: nginx:stable-alpine
    container_name: nginx-proxy
    restart: always
    ports:
      - '80:80'
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - 3xui
Image
<!-- gh-comment-id:3169551139 --> @TLCFEM commented on GitHub (Aug 9, 2025): Here is a MWE. nginx.conf ``` events {} http { server { listen 80; location / { # replace this line with the following line only after setting the URI path in panel! # location /some-path/ { proxy_pass http://3xui:2053; proxy_http_version 1.1; 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; } } } ``` docker-compsoe.yaml ``` services: 3xui: image: ghcr.io/mhsanaei/3x-ui:latest container_name: 3xui volumes: - ./3xui/db/:/etc/x-ui/ - ./3xui/cert/:/root/cert/ environment: XRAY_VMESS_AEAD_FORCED: "false" XUI_ENABLE_FAIL2BAN: "true" tty: true restart: always nginx: image: nginx:stable-alpine container_name: nginx-proxy restart: always ports: - '80:80' volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - 3xui ``` <img width="708" height="60" alt="Image" src="https://github.com/user-attachments/assets/17896a1f-b1b0-4471-ae73-54785c609751" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2255
No description provided.