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] How to secure your sentora panel with SSL (HTTPS) easy guide
#26
RE: [HOW TO] How to secure your sentora panel with SSL (HTTPS) easy guide
a little bit different from the tutorial
moved sentora to port 2083, same as Cpanel

1. i created new configuration files /etc/sentora/configs/apache/http-panel-redir.conf
here is the configuration to force redirection from port 80 to port 2083
Code:
<virtualhost *:80>
  ServerName sentora.mydomain.tld
  RewriteEngine on
  ReWriteCond %{SERVER_PORT} !^2083$
  RewriteRule ^/?(.*) https://%{SERVER_NAME}:2083/$1 [NC,R,L]
</virtualhost>

then add this line to /etc/sentora/configs/apache/httpd.conf
Code:
Include /etc/sentora/configs/apache/http-panel-redir.conf

2. go to Server Admin > Sentora Config > set sentora apache port to 2083

3. go to Apache Admin, add these SSL configs to Global Sentora Entry
Code:
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite "CDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNU$
SSLEngine on
SSLCertificateFile /path/to/my-certificate.crt
SSLCertificateKeyFile /path/to/my-key.decr.key
SSLCACertificateFile /path/to/my/root.ca.pem
4. restart apache, run the daemon using
Code:
php -q /etc/sentora/panel/bin/daemon.php

this configuration also works well if you want to redirect sentora panel fqdn only to ssl port (443)
just change the rewrite rules in first step to 
Code:
<virtualhost *:80>
   ServerName sentora.mydomain.tld
   RewriteEngine on
   RewriteCond %{HTTPS} !=on
   RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</virtualhost>
and change Sentora Apache port to 443

when requesting sentora fqdn (via port 80), it will redirects you to desired port and protocol (https)
but when requesting ip address, it will redirects to the first website listed in httpd-vhosts.conf
just a little protection to my sentora login page with noob-ways Big Grin
Reply
Thanks given by:


Messages In This Thread
RE: [HOW TO] How to secure your sentora panel with SSL (HTTPS) easy guide - by carl.victor - 04-19-2015, 09:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Secure Sentora With SSLForFree Chris L 1 4 ,715 01-22-2020, 09:19 PM
Last Post: ralphharder
Fail2ban for Sentora (Centos 7) bbspike 14 44 ,983 01-14-2020, 07:32 AM
Last Post: Vedran B
Timeout for Sentora Admin Panel minufreelance 12 45 ,532 11-24-2018, 12:33 PM
Last Post: fearworks

Forum Jump:


Users browsing this thread: 4 Guest(s)