Hi
I used the following
http://forums.sentora.org/showthread.php?tid=2535
I have done the steps.
here is the /etc/sentora/configs/apache/httpd-vhost.conf
I used the following
http://forums.sentora.org/showthread.php?tid=2535
I have done the steps.
here is the /etc/sentora/configs/apache/httpd-vhost.conf
Code:
# DOMAIN: xxx.co.za
<virtualhost *:443>
ServerName xxx.co.za
ServerAlias www.xxx.co.za
ServerAdmin jidewet@xxx.co.za
DocumentRoot "/var/sentora/hostdata/xxx/public_html/xxx_co_za"
php_admin_value open_basedir "/var/sentora/hostdata/xxx/public_html/xxx_co_za:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ErrorLog "/var/sentora/logs/domains/xxx/xxx.co.za-error.log"
CustomLog "/var/sentora/logs/domains/xxx/xxx.co.za-access.log" combined
CustomLog "/var/sentora/logs/domains/xxx/xxx.co.za-bandwidth.log" common
<Directory "/var/sentora/hostdata/xxx/public_html/xxx_co_za">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 500 /_errorpages/500.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)
# Custom VH settings (if any exist)
# Alias for roundcube WebMail login
Alias "/webmail" "/etc/sentora/panel/etc/apps/webmail"
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/xxx.co.za/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxx.co.za/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/xxx.co.za/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
SSLCompression off
</virtualhost>
# END DOMAIN: xxx.co.za
################################################################
# DOMAIN: xxx.co.za
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:80>
ServerName xxx.co.za
ServerAlias www.xxx.co.za
ServerAdmin jidewet@xxx.co.za
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
# END DOMAIN: xxx.co.za