New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to activate SSL on whole server?

Started by nemanja, March 19, 2021, 08:42:11 PM

Previous topic - Next topic

nemanja

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  :)

Painkiller88

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