Created
June 8, 2016 21:59
-
-
Save codephi/2b8ffd2319e193b84b7d527b3f834aeb to your computer and use it in GitHub Desktop.
Sentora SSL config
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
RewriteEngine on | |
ReWriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] | |
</virtualhost> | |
Listen 443 | |
<VirtualHost *:443> | |
ServerAdmin zadmin@localhost | |
DocumentRoot "/etc/sentora/panel/" | |
ServerName do1.upuphost.com | |
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 /root/server.crt/ | |
SSLCertificateKeyFile /root/server.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment