如何创建 Windows 子子域名?

如何创建 Windows 子子域名?

我有 2 个域名:

  • ex1.com
  • ex2.com

DNS 记录:MYIP@my.ex2.com

httpd-vhosts.conf

<VirtualHost *:1337> 
DocumentRoot "D:/Webserver/domains/ex1.com/www" 
ServerName "ex1.com" 
ServerAlias "ex1.com" "sub.my.ex2.com"
ErrorLog "logs/ex-error.log" 
CustomLog "logs/ex-access.log" common 
<Directory "D:/Webserver/domains/ex1.com"> 
Allow From all 
AllowOverride All 
</Directory> 
</VirtualHost> 

如何创建子域名my.ex2.com作为别名 ex1.com?

我需要的:ex1.com = sub.my.ex2.com

答案1

您只需将所有想要的域添加到 serverAlias 指令中:http://httpd.apache.org/docs/2.0/mod/core.html#serveralias

答案2

正确的 DNS 记录*.我的@ ip

相关内容