Skip to content

Instantly share code, notes, and snippets.

@codephi
Created June 8, 2016 21:59
Show Gist options
  • Save codephi/2b8ffd2319e193b84b7d527b3f834aeb to your computer and use it in GitHub Desktop.
Save codephi/2b8ffd2319e193b84b7d527b3f834aeb to your computer and use it in GitHub Desktop.
Sentora SSL config
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