Control Web Panel

WebPanel => SSL => Topic started by: nemanja on March 19, 2021, 08:42:11 PM

Title: How to activate SSL on whole server?
Post by: nemanja on March 19, 2021, 08:42:11 PM
Hey guys. I need a little bit of help. I am a complete newbie to system administration so I have no idea how exactly to do this.

I have just bought my first VPS with CWP pro. I have created a Let's Encrypt R3 certificate in the panel and it works with https prefix. What I want to do now is to make all HTTP automatically redirect to https (that has a certificate). I have managed to do this with a plugin in a WordPress site that is hosted on VPS, but I want it to work for the whole server (for eg. mail.site.com, etc).

I'm running on CentOS7 with Apache/2.4.39 (Unix)

Any help would be appreciated  :)
Title: Re: How to activate SSL on whole server?
Post by: Painkiller88 on March 30, 2021, 09:33:54 PM
Go to WebServer Settings->Domain Conf


here you can create a config for all your domains and choose "force https" as template for "Nginx default vhost template"

if you are using apache only you can do it via .htaccess and force https there