[GH-ISSUE #68] Suggestion: Be able to change the root directory #7160

Closed
opened 2026-03-12 19:16:19 +03:00 by kerem · 2 comments
Owner

Originally created by @Tom60chat on GitHub (Jan 26, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/68

Hello,
To be able to use nginx-ui behind a reverse proxy, it would be cool to be able to change the location / to whatever we want, like /nginx-ui/

For example:
https://myserver:9000/ will be https://myserver/nginx-ui/

Originally created by @Tom60chat on GitHub (Jan 26, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/68 Hello, To be able to use nginx-ui behind a reverse proxy, it would be cool to be able to change the location / to whatever we want, like /nginx-ui/ For example: https://myserver:9000/ will be https://myserver/nginx-ui/
kerem 2026-03-12 19:16:19 +03:00
Author
Owner

@0xJacky commented on GitHub (Jan 27, 2023):

This feature will be released with v1.7.3.

Just modify your nginx configuation like the example below, and it will be automatically supported sub path deployment.

location /<sub-path>/ {
        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;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_pass http://127.0.0.1:9000/;
    }
<!-- gh-comment-id:1406719916 --> @0xJacky commented on GitHub (Jan 27, 2023): This feature will be released with `v1.7.3`. Just modify your nginx configuation like the example below, and it will be automatically supported sub path deployment. ``` location /<sub-path>/ { 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; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_pass http://127.0.0.1:9000/; } ```
Author
Owner

@Tom60chat commented on GitHub (Jan 27, 2023):

Wow, cool!

Thanks for your quick answer and change!

<!-- gh-comment-id:1406767432 --> @Tom60chat commented on GitHub (Jan 27, 2023): Wow, cool! Thanks for your quick answer and change!
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#7160
No description provided.