Hi,
i try to make roundcube work with ssl cert only on one domain.
First step was:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://round.example.com/$1 [R,L]
Second step was to make custom virtual_host2.conf (i know that this will made it for all domains, but rewrite rule do the job to redirect and use only proper one)
So i add there:
<VirtualHost |IP|:443>
ServerName round.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/roundcube
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
SSLEngine on
SSLCertificateFile /path/to/round.crt
SSLCertificateKeyFile /path/to/round.key
SSLCertificateChainFile /path/to/CA.crt
</VirtualHost>
Problem is that after i go to round.exemple.com i got main apache cert, not the one from /path/to/ that was made for round.exemple.com
Any ideas why?
i try to make roundcube work with ssl cert only on one domain.
First step was:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://round.example.com/$1 [R,L]
Second step was to make custom virtual_host2.conf (i know that this will made it for all domains, but rewrite rule do the job to redirect and use only proper one)
So i add there:
<VirtualHost |IP|:443>
ServerName round.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/roundcube
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
SSLEngine on
SSLCertificateFile /path/to/round.crt
SSLCertificateKeyFile /path/to/round.key
SSLCertificateChainFile /path/to/CA.crt
</VirtualHost>
Problem is that after i go to round.exemple.com i got main apache cert, not the one from /path/to/ that was made for round.exemple.com
Any ideas why?