[GH-ISSUE #475] Add nginx alias to webvirtmgr configuration? #353

Closed
opened 2026-02-27 16:38:58 +03:00 by kerem · 1 comment
Owner

Originally created by @dcramble on GitHub (Nov 19, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/475

I would like to modify the default url that webvirtmgr is running at.

Instead of : http://[ hostname ]

I would like: http://[ hostname ]/webvirtmgr

I thought I could just modify the nginx location directives, but that did not work. Do I need to update the URL in webvirtmgr's cinfiguration some where? Please keep in mind I am an expert with apache, but new to nginx.

# nginx.conf

....

     # location /static/ {
     location /webvirtmgr/static/ {
            root /usr/share/nginx/webvirtmgr/webvirtmgr;
            expires max;
    }

     # location / {
    /webvirtmgr/location {
            proxy_pass http://127.0.0.1:8000;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-Proto $remote_addr;
            proxy_connect_timeout 600;
            proxy_read_timeout 600;
            proxy_send_timeout 600;
            client_max_body_size 1024M;
    }
Originally created by @dcramble on GitHub (Nov 19, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/475 I would like to modify the default url that webvirtmgr is running at. Instead of : http://[ hostname ] I would like: http://[ hostname ]/webvirtmgr I thought I could just modify the nginx location directives, but that did not work. Do I need to update the URL in webvirtmgr's cinfiguration some where? Please keep in mind I am an expert with apache, but new to nginx. ``` # nginx.conf .... # location /static/ { location /webvirtmgr/static/ { root /usr/share/nginx/webvirtmgr/webvirtmgr; expires max; } # location / { /webvirtmgr/location { proxy_pass http://127.0.0.1:8000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $remote_addr; proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; client_max_body_size 1024M; } ```
kerem closed this issue 2026-02-27 16:38:58 +03:00
Author
Owner

@dcramble commented on GitHub (Nov 19, 2014):

Just saw that this was covered by #472 . Sorry.

<!-- gh-comment-id:63732901 --> @dcramble commented on GitHub (Nov 19, 2014): Just saw that this was covered by #472 . Sorry.
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/webvirtmgr#353
No description provided.