Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Be able to change the root directory #68

Closed
Tom60chat opened this issue Jan 26, 2023 · 2 comments
Closed

Suggestion: Be able to change the root directory #68

Tom60chat opened this issue Jan 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Tom60chat
Copy link

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/

@Tom60chat Tom60chat changed the title Be hable to change root directory Suggestion: Be hable to change root directory Jan 26, 2023
@Tom60chat Tom60chat changed the title Suggestion: Be hable to change root directory Suggestion: Be able to change the root directory Jan 26, 2023
@0xJacky 0xJacky added enhancement New feature or request help wanted Extra attention is needed labels Jan 27, 2023
0xJacky added a commit that referenced this issue Jan 27, 2023
@0xJacky 0xJacky removed the help wanted Extra attention is needed label Jan 27, 2023
@0xJacky
Copy link
Owner

0xJacky commented 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/;
    }

@0xJacky 0xJacky closed this as completed Jan 27, 2023
@Tom60chat
Copy link
Author

Tom60chat commented Jan 27, 2023

Wow, cool!

Thanks for your quick answer and change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants