问题原文
原帖链接 · Jimmy Phan · CC BY-SA 4.0
I have the following problem: I have 2 domains: domain1.example and domain2.example (domain pointer) => domain1.example.
Previously, I used Let's Encrypt to create SSL for both in DirectAdmin and it was OK. But DST Root CA X3 Expiration error made my Let's Encrypt alert and I bought paid SSL.
I bought ssl for domain1.example but domain2.example doesn't have SSL.
How do I install SSL for the domain pointer? I'm using DirectAdmin version 1.61.5.
已采纳解答
原帖链接 · Stephen Ostermiller · CC BY-SA 4.0
DirectAdmin 1.52.0 started supporting HTTPS for domain pointers. They say:
SSL certificates used in the VirtualHost/server will be the ones from the master domain the pointer is created under. To avoid SSL Certificate errors, you'll need to ensure that the pointer is also in the master domains certificate. LetsEncrypt can do this for you, just an extra checkbox from the list.
So to make it work you would need to get a subject alternate name (SAN) certificate that has both domain1.example and domain2.example covered in the same certificate. When you add the certificate to domain1.example DirectAdmin would automatically use it for domain2.example as well. It sounds like you had LetsEncrypt give you a SAN certificate that covered both your domains. You would have to do the same thing with your new certificate provider.
To use a its own separate certificate, you would need to configure the domain differently. You wouldn't be able to use DirectAdmin's domain pointer feature. This forum has some ways of doing so. One user created a new domain and uses a frameset to forward it (although you should be able to set up a redirect somehow.) Another user uses a custom virtual host template. That thread says that you might have to create the domain on its own IP address, but that thread is old and that shouldn't be the case at this point. At this point certificates should work in virtual hosts without their own IP address on pretty much every web server.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
