Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: joaomach on July 19, 2021, 03:19:23 PM

Title: cpanel SSL login redirects to non-ssl
Post by: joaomach on July 19, 2021, 03:19:23 PM
Recently, not really sure when, but when a user logs in to their cpanel account https://cpanel.domainxyz.com, they are redirected to non-SSL page. If you change the URL to https the session continues in SSL with no issues.

The server has been running great for weeks, nothing changed that I know of...
Title: Re: cpanel SSL login redirects to non-ssl
Post by: joaomach on August 13, 2021, 11:57:59 AM
If anyone else also runs into this issue, and you are running   Nginx + Varnish + Apache PHP-FPM Performance 
Go to   WebServer Settings > WebServers Domain Config  then select a domain.
Then under  Nginx default vhost template: Select force-https-http2

at the bottom, select  Rebuild WebServers conf for domain on save

Click >  Save Changes