Then you haven't followed it completely or missed a step/configuration somewhere.
(In this guide, replace mydomain_com with your ssl domain and also replace you@email.com with your email.)
Another way of doing it (requires a little more manual work, but operates just fine) is follow the Let's Encrypt documentation listed above SKIPPING the
Changing Domaina port: step. Then, create a new folder /
ssl/ here: /etc/sentora/configs/apache/
ssl/
Inside this new folder, create a new file called:
mydomain_com.conf
Example mydomain_com.conf:
PHP Code:
# DOMAIN: mydomin.com
<virtualhost *:443>
ServerName mydomin.com
ServerAlias www.mydomin.com
ServerAdmin you@email.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mydomin_com"
ErrorLog "/var/sentora/logs/domains/zadmin/mydomin.com-error.log"
CustomLog "/var/sentora/logs/domains/zadmin/mydomin.com-access.log" combined
CustomLog "/var/sentora/logs/domains/zadmin/mydomin.com-bandwidth.log" common
<Directory "/var/sentora/hostdata/zadmin/public_html/mydomin_com">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 415 /_errorpages/415.html
ErrorDocument 413 /_errorpages/413.html
ErrorDocument 400 /_errorpages/400.html
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 408 /_errorpages/408.html
ErrorDocument 510 /_errorpages/510.html
DirectoryIndex index.php index.html index.htm index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)
# Custom settings are loaded below this line (if any exist)
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/mydomin.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomin.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/mydomin.com/chain.pem
# Keeping below for future upgrades.
# Requires Apache >= 2.4
SSLCompression off
</VirtualHost>
Next, add to the VERY BOTTOM of /etc/sentora/configs/apache/httpd.conf:
PHP Code:
# include SSL Vhosts
Listen 443
Include /etc/sentora/configs/apache/ssl/mydomain_com.conf
Restart apache.
To switch all http traffic to https traffic, add to your domain's root .hataccess file AFTER
RewriteEngine On:
PHP Code:
RewriteEngine On
# Force SSL - Always first!
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
This should work perfect also