[GH-ISSUE #279] Install guide broken on debian #221

Closed
opened 2026-02-27 16:38:28 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Apr 12, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/279

I am running debian 8 jessie. i know its alpha but i am sure the configuration did not change since 7 regarding nginx etc.

I followed step-by-step that guide https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr and i was unable to get it working

First, the /etc/nginx/sites-available/default file is always loaded instead of the newly created /etc/nginx/conf.d/webvirtmgr.conf
After deleting or moving that default file to somewhere else, e.g. /root, and reloading nginx, a login site appears. Unfortunately the html/css/js is completly broken. I have no idea where the files are located, nor do i know what needs configuration changes to get that working.

Originally created by @ghost on GitHub (Apr 12, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/279 I am running debian 8 jessie. i know its alpha but i am sure the configuration did not change since 7 regarding nginx etc. I followed step-by-step that guide https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr and i was unable to get it working First, the /etc/nginx/sites-available/default file is always loaded instead of the newly created /etc/nginx/conf.d/webvirtmgr.conf After deleting or moving that default file to somewhere else, e.g. /root, and reloading nginx, a login site appears. Unfortunately the html/css/js is completly broken. I have no idea where the files are located, nor do i know what needs configuration changes to get that working.
kerem closed this issue 2026-02-27 16:38:28 +03:00
Author
Owner

@ghost commented on GitHub (Apr 12, 2014):

server {
listen 80;
# full path to the project dir - the dir that contains the urls.py file
root /var/www/webvirtmgr/webvirtmgr;
access_log /var/log/nginx/webvirtmgr_access_log;
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;
}
location /static/{
# The path to the actual project directory here - the one which contains the static/
# dir holding the static files for this project
root /var/www/webvirtmgr/webvirtmgr;
}
}

when someone follows the guide, this is the "correct" config for nginx. either delete the old one in /etc/nginx/sites-available/default and create another one with the content above in /etc/nginx/conf.d/webvirtmgr.conf or change the content of the default file - unfortunately i am not that familiar with nginx so i have no working version for that.

<!-- gh-comment-id:40274538 --> @ghost commented on GitHub (Apr 12, 2014): server { listen 80; # full path to the project dir - the dir that contains the urls.py file root /var/www/webvirtmgr/webvirtmgr; access_log /var/log/nginx/webvirtmgr_access_log; 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; } location /static/{ # The path to the actual project directory here - the one which contains the static/ # dir holding the static files for this project root /var/www/webvirtmgr/webvirtmgr; } } when someone follows the guide, this is the "correct" config for nginx. either delete the old one in /etc/nginx/sites-available/default and create another one with the content above in /etc/nginx/conf.d/webvirtmgr.conf or change the content of the default file - unfortunately i am not that familiar with nginx so i have no working version for that.
Author
Owner

@retspen commented on GitHub (Apr 14, 2014):

When you add config webvirtmgr.conf you need change parametr server_name domain.test; and don't need remove default nginx config.

<!-- gh-comment-id:40344230 --> @retspen commented on GitHub (Apr 14, 2014): When you add config webvirtmgr.conf you need change parametr <code>server_name domain.test;</code> and don't need remove default nginx config.
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#221
No description provided.