Created
October 26, 2015 15:08
-
-
Save partageit/e62d3b0cd5d7fa33572e to your computer and use it in GitHub Desktop.
Enable SSL for Sentora panel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <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