大网数据广告活动
网站运营与故障问答

How do I install a security certificate for an alias (domain pointer) in DirectAdmin?

· 52CE 我爱测

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 Ex…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2021-10-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。