Thanks again, it worked with the following configuration:
Code:
</VirtualHost>
# Configuration for WebMail
<VirtualHost *:443>
ServerAdmin mail@domain.com
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
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"
ServerName webmail.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Require all granted
</Directory>
Now this works fine on
https://webmail.domain.com, but in
http://webmail.domain.com I'm getting redirected to the panel.domain.com, any idea how can I avoid that ?
Also, for the https certificate, should I add the following after the code above?
Code:
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/webmail.domain.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/webmail.domain.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/webmail.domain.com/chain.pem
SSLCompression off