mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 15:45:51 +03:00
[GH-ISSUE #253] Getting kicked to http from https #200
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 @ionstorm66 on GitHub (Mar 6, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/253
I keep getting kicked back to http from https. Problem is the webserver is set for https only.
If i vist https://mysite/ it takes me to http://mysite/login/
@camjac251 commented on GitHub (Mar 6, 2014):
You can look at nginx for this
/etc/nginx/ will be the place to look
Also try your ip address and see if it goes anywhere
@ionstorm66 commented on GitHub (Mar 6, 2014):
It isn't nginx, nginx dosent have anything configured for http.
If I change nginx to http, login to the site, change nginx back to https, then goto https://mysite/servers/ it works. It is something with the redirect causing an issue.
@camjac251 commented on GitHub (Mar 6, 2014):
I can assist you over teamviewer if you'd like. I am more of the I have to see the issue type of guy.
@gitshaw commented on GitHub (Mar 6, 2014):
for vnc:
console/webvirtmgr-novnc
inside webvirtmgr/settings.py i have the following settings:
nginx config:
Works for me keeping full site over https.
@hogarth-sv commented on GitHub (Mar 31, 2014):
As a note to the above comment if a SSL certificate is used that is self signed (or signed by a non-trusted CA) then the VNC viewer will not work until the certificate is accepted for the host+port ... the symptom will be the wss socket being rejected.
To resolve this go to https://webvirtmgr.server.name:6080 and accept the certificate - then the console session will work.
@gitshaw commented on GitHub (Apr 1, 2014):
I have changed the cert in /var/www/webvirtmgr/console/ to match what i have in nginx and i did not have to go through adding a port to the url. Have you kept the default cert.pm in place.
@az6667 commented on GitHub (Jul 10, 2014):
Gitshaw's suggestion works well. Potential pitfall if you're converting from an existing HTTP setup:
Ensure you use Gitshaw's example:
proxy_set_header Host $host;And not the following which you may have previously set for http:
proxy_set_header Host $host:$server_port;Or else CSRF errors may pop-up.
Also, this helps for uploading ISO's via the interface:
client_max_body_size 1024M;@bobdocland42 commented on GitHub (Jul 7, 2015):
Hi,
I would like to know how to run WebVirtMgr with HTTPS and secure it (with nginx).
I follow what gitshaw has explain and I've now the same configuration but, I've got a little problem.
The web interface still accessible without HTTPS... have you any idea of the problem ? I think isn't a big problem but I don't succed in solving the currently.
Thanks in advance
@ionstorm66 commented on GitHub (Jul 7, 2015):
just remove the top server block from the nginx block.
@bobdocland42 commented on GitHub (Jul 8, 2015):
If you talk about this :
I have already commented it. (After I restart nginx etc., I delete my web browser cache) And the web page http://x.x.x.x:8000 still accessible. I don't understand why.
In perfect solution I would like to have http://x.x.x.x/webvirtmgr redirect to --> https://x.x.x.x/webvirtmgr
(I would add a path to the URL to use nginx has reverse proxy for other web services.)