Author Topic: How to activate SSL on whole server?  (Read 3970 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to activate SSL on whole server?
« 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  :)

Offline
**
Re: How to activate SSL on whole server?
« Reply #1 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