• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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