This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How to Enable SSL to Domain Which hosted on Sentora
#5
RE: How to Enable SSL to Domain Which hosted on Sentora
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 Wink
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Messages In This Thread
RE: How to Enable SSL to Domain Which hosted on Sentora - by TGates - 06-09-2016, 12:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Is Sentora dead? rajeevrrs 2 3 ,971 12-17-2022, 09:20 AM
Last Post: TGates
Sentora debug and error files johnnyp 0 1 ,590 10-27-2022, 06:16 PM
Last Post: johnnyp
Transfer Account to another Sentora BenI 1 3 ,334 07-21-2022, 07:19 PM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 3 Guest(s)