Hi,
I installed the certificate manager and now my vhost file got changed and disrupted the virtual hosts DocumentRoots.
You havent mentioned anything about redirecting port 80 traffic to 443 https.
below a piece of the vhost file. At the moment non of my sites are online anymore. need help quick to resolve this.
# DOMAIN: domain.nl
<virtualhost *:443>
ServerName domain.nl
ServerAlias
www.domain.nl
ServerAdmin info@domain.nl
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/domain_nl"
php_admin_value open_basedir "/var/sentora/hostdata/zadmin/public_html/domain_nl:/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/zadmin/domain.nl-error.log"
CustomLog "/var/sentora/logs/domains/zadmin/domain.nl-access.log" combined
CustomLog "/var/sentora/logs/domains/zadmin/domain.nl-bandwidth.log" common
<Directory "/var/sentora/hostdata/zadmin/public_html/domain_nl">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 510 /_errorpages/510.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)
# Made from Cert manager start
SSLEngine On
SSLCertificateFile /var/sentora/hostdata/zadmin/ssl/domain_nl/domain.nl.crt
SSLCertificateKeyFile /var/sentora/hostdata/zadmin/ssl/domain_nl/domain.nl.key
SSLCACertificateFile /var/sentora/hostdata/zadmin/ssl/domain_nl/intermediate.crt
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+AESGCM EECDH EDH+AESGCM EDH+aRSA HIGH !MEDIUM !LOW !aNULL !eNULL !LOW !RC4 !MD5 !EXP !PSK !SRP !DSS"
# Made from Cert manager end
</virtualhost>
# END DOMAIN: domain.nl
################################################################
# DOMAIN: domain.nl
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:80>
ServerName domain.nl
ServerAlias
www.domain.nl
ServerAdmin info@domain.nl
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
# END DOMAIN: domain.nl