mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 08:05:54 +03:00
[GH-ISSUE #472] [feature req] WebVirtMgr on /manage #351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MedicMomcilo on GitHub (Nov 12, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/472
Hi friends!
This is some awesome software and I absolutely love it! :)
Is it possible to have the option to move it from / on server to something else? I know using web from outside is not recommended, but I tend to manage my server from work (read: windows box) so I cannot setup ssh tunnel.
I saw #249 and tried adding /manage to urls.py and it works for some parts, not for login (I have to manualy type /manage/login) and for noVNC (I have to manualy add /manage/ in the link)
So, can we have this issue open until someone comes by who knows how to implement this?
Thanks for this awesome piece of art.
@NicolasPaccaud commented on GitHub (Nov 20, 2014):
Same problem here; I've tried couple of things; rewriting urls.py does not work, some url seems to be hardcoded as you seen.
Even tried to play with rewrite url in the nginx conf for webvirtmgr but failed to achieve a working configuration.
Using / or /whatever as no relation with security or outside access; this should be left to specific other solution (ip restrictions, vpn, , ...)
Hope we can find a solution to that.
@IlGab78 commented on GitHub (Mar 23, 2015):
Maybe I'm little bit late on this but someone can found this useful.
My environment is webvirtmgr on arch linux and apache2.4 + mod_wsgi (I don't want use nginx).
I move the root from http://ip.of.the.server/ to http://ip.of.the.server/webvirtmgr
Path for webvirtmgr on server is /usr/lib/webvirtmgr/
install and enable mod_wsgi2 in apache (wsgi2 is for python 2.x only)
pacman -S community/mod_wsgi2
Load the module in apache
LoadModule wsgi_module modules/mod_wsgi.so
add this to your apache config ( Require all granted is for apache 2.4 not 2.2)
WSGIScriptAlias /webvirtmgr /usr/lib/webvirtmgr/webvirtmgr/wsgi.py
WSGIPythonPath /usr/lib/webvirtmgr/
Alias /static /usr/lib/webvirtmgr/static/
< Directory /usr/lib/webvirtmgr/webvirtmgr/>
< Files wsgi.py>
Require all granted
< /Files>
< /Directory>
< Directory /usr/lib/webvirtmgr/static/>
AllowOverride None
Require all granted
< /Directory>"
from
url(r'^console/$', 'console.views.console', name='console'),
to
url(r'^webvirtmgr/console/$', 'console.views.console', name='console'),
change the owner of secret_key_store to http server's user
chown http /usr/lib/webvirtmgr/webvirtmgr/local/.secret_key_store
happy surfing on http:///webvirtmgr
@fulminemizzega commented on GitHub (Apr 5, 2015):
Hi all. After a very long (I know pretty much nothing about webserving/nginx) research I found something almost working but with nginx instead of apache.
This is the NGINX configuration part, taken right from documentation and slightly modified:
I want webvirtmgr to be in http://mysrv/vm. What set me on the right direction was http://albertoconnor.ca/blog/2011/Sep/15/hosting-django-under-different-locations
I just changed location / to location /vm/ and added
proxy_set_header SCRIPT_NAME /vm;Still, console does not work. I tried changing urls.py, but it looks like the setting does not do anything (restarted supervisor after each change), it still goes to http://mysrv/console...
Another issue is that I still haven't managed to move /static to /vm/static, this config is not working.
How is it possible that you can't host webvirtmgr anywhere besides root??
Another route I tried but failed (probably because of my lack of knowledge): run nginx to host webvirtmgr on port 8001, then use another nginx proxy on port 80 with location /vm/ and proxy_pass to it. Every time the url was rewritten without /vm/, so redirection failed.