Skip to content

Instantly share code, notes, and snippets.

@partageit
Created October 26, 2015 15:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save partageit/e62d3b0cd5d7fa33572e to your computer and use it in GitHub Desktop.
Save partageit/e62d3b0cd5d7fa33572e to your computer and use it in GitHub Desktop.
Enable SSL for Sentora panel
# <virtualhost *:80> already open
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
<VirtualHost *:443>
ServerAdmin zadmin@localhost
DocumentRoot "/etc/sentora/panel/"
ServerName your-server-address
ErrorLog "/var/sentora/logs/sentora-error.log"
CustomLog "/var/sentora/logs/sentora-access.log" combined
CustomLog "/var/sentora/logs/sentora-bandwidth.log" common
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
SSLEngine On
SSLCertificateFile /var/zpanel/hostdata/zadmin/ssl/panel/server.crt
SSLCertificateKeyFile /var/zpanel/hostdata/zadmin/ssl/panel/server.key
# </VirtualHost> automatically closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment