How to set up HTTPS on a virtual server?
HTTPS settings on CentOS servers
On the server console under logged-in user root to write:
yum install mod_ssl
- If you want to use a certificate issued by a certification authority, you must upload your certificate and private key on the server, and set the path for the "SSLCertificateFile" and "SSLCertificateKeyFile" in the file /etc/httpd/conf.d/ssl.conf.
- In the file /etc/httpd/conf.d/ssl.conf uncomment the line the "DocumentRoot" and set in the file path to the directory that is to be used for HTTPS.
Under the "DocumentRoot" line add the following block:
<Directory /home> AllowOverride All </Directory>
HTTPS settings on WebApps servers
The standard (not wildcard) Let's Encrypt SSL certificate is supported, which can be activated for a domain record if your domain is already redirected to VPS. The certificate is renewed automatically. Wildcard SSL certificate is not supported for WebApps servers, but the situation can be solved by creating two domain records, each with its own standard certificate pointing to the same directory. The behavior can then be modified using .htaccess.