[GH-ISSUE #39] 无法为nginx-ui设置nginx代理 #19

Closed
opened 2026-02-26 12:07:00 +03:00 by kerem · 1 comment
Owner

Originally created by @FocusProgram on GitHub (Oct 27, 2022).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/39

Nginx配置如下:

location /nginx-ui/ {
        proxy_set_header HOST $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        # nginx-ui访问地址
        proxy_pass http://localhost:8080/;
}

无法访问:http://localhost/nginx-ui,console显示加载css、js 404

Originally created by @FocusProgram on GitHub (Oct 27, 2022). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/39 Nginx配置如下: ``` location /nginx-ui/ { proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # nginx-ui访问地址 proxy_pass http://localhost:8080/; } ``` 无法访问:http://localhost/nginx-ui,console显示加载css、js 404
kerem closed this issue 2026-02-26 12:07:00 +03:00
Author
Owner

@0xJacky commented on GitHub (Oct 27, 2022):

目前暂不支持子目录部署

<!-- gh-comment-id:1292901858 --> @0xJacky commented on GitHub (Oct 27, 2022): 目前暂不支持子目录部署
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
starred/nginx-ui#19
No description provided.