• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

SSL cert for webmail

B

bigtank

Guest
Hi there

I've imported a ssl certificate via plesk -> server -> certificates

It works well.


Now I tried to set a other certificate for webmail. I made a special configuration.
So every webrequest for webmail.* refers to a fix dns name https://webmail.myserver.mydomain.com.

I changed /etc/httpd/conf/httpd.pem with the new certificate because /etc/httpd/conf.d/zz010_psa_httpd.conf
includes this inside the virtual hosts for 443.

Now when I connect http://webmail.myserver.mydomain.com I still get the certificate which I imported
via plesk for plesk administration but not the one I changed in /etc/httpd/conf/httpd.pem ???

...
...
# SSL host
<IfModule mod_ssl.c>

<VirtualHost \

1.2.3.4:443 \
>
DocumentRoot /usr/share/psa-horde/
Alias /horde/ /usr/share/psa-horde/
Alias /imp/ /usr/share/psa-horde/imp/
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/httpd.pem
<Directory /usr/share/psa-horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
</IfModule>
SSLRequireSSL
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


</IfModule>
...
...

Does somebody know why that is?


Thanx for help

bigtank :)
 
Hi

I made it different. I also use one IP for everything within plesk.

# cat /etc/httpd/conf.d/webmail.conf
<Directory /usr/share/psa-horde>

RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://webmail.mydomain.com/$1 [R=301,L]

</Directory>
#

So every webmail.domain.tld will be rewrited in "https://webmail.mydomain.com/"
and secure in one config file.


My problem is only how to setup a certificate for the "https://webmail.mydomain.com/".
I have the cert but I don't where to configure it...???

Bye
 
Back
Top