I'm trying to setup the following environment:
There is one single FTP Server (Debian 9, proftpd 1.3.6-4), reachable under 1.2.3.4.
Two domains, which are pointing to that IP Address
- example1.com ->
1.2.3.4 - example2.com ->
1.2.3.4
Each of these domains has its own certificate.
How can I serve both certificates with proftpd?
According to this (ProFTPd: Multiple Domain VirtualHosts on one IP address) it should be possible.
So my config would look like:
<VirtualHost example1.com>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv23
TLSOptions NoCertRequest EnableDiags NoSessionReuseRequired
TLSVerifyClient off
TLSRSACertificateFile /etc/apache2/ssl/cert-example1.com.pem
TLSRSACertificateKeyFile /etc/apache2/ssl/privkey-example1.com.pem
</VirtualHost>
<VirtualHost example2.com>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv23
TLSOptions NoCertRequest EnableDiags NoSessionReuseRequired
TLSVerifyClient off
TLSRSACertificateFile /etc/apache2/ssl/cert-example2.com.pem
TLSRSACertificateKeyFile /etc/apache2/ssl/privkey-example2.com.pem
</VirtualHost>
Unfortunately, none of them work. It only works for one domain if I put the IP address instead of the dns name in it.
I turned on debugging to see what's happening. I always get a no matching vhost found for 1.2.3.4 message