Access the web interface without typing HTTPS

a_boudi

New Member
Jul 20, 2017
1
0
1
I recently installed proxmox 5, and all is working great.

I only have a little problem with http and port 80. I want to have access to the web-gui without having to type "https" before the URL. So, how can I redirect "http" requests to "https"?
The solutions I found are using the apache's rewriting engine, but since version 3, proxmox is using pveproxy instead of apache.
 
I recently installed proxmox 5, and all is working great.

I only have a little problem with http and port 80. I want to have access to the web-gui without having to type "https" before the URL. So, how can I redirect "http" requests to "https"?
The solutions I found are using the apache's rewriting engine, but since version 3, proxmox is using pveproxy instead of apache.

You could add a rewrite rule which redirects you from port 80 http to port 8006 https.
This can be done with most Webservers, Apache too. I'd do it with nginx as it is a tad more lightweight (and I like it just more, to be honest :) ).

An example nginx config entry for this redirect would look like:
Code:
server {
   listen 80;
   return 301 https://$host:8006;
}

I.e. a server which listens on default port 80 and returns a permanently moved to the PVE interface address where then pveproxy takes over.
This is one of the most simplest and easiest way I could think of.

Maybe take also a look at: https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!