Dns 如何创建';www';自动域别名?
我为新域创建了CNAME记录:Dns 如何创建';www';自动域别名?,dns,apache2,Dns,Apache2,我为新域创建了CNAME记录:www.CNAME@,现在,如果我有许多域,我应该始终创建一个链接“www.example.com”到“example.com”文件夹吗?我的apache VHOST配置为: UseCanonicalName Off VirtualDocumentRoot /home/colix/www/hosts/%0 VirtualScriptAlias /home/colix/www/hosts/%0/cgi-bin 对于这种情况,我总是在配置中使用ServerAlias
www.CNAME@
,现在,如果我有许多域,我应该始终创建一个链接“www.example.com”到“example.com”文件夹吗?我的apache VHOST配置为:
UseCanonicalName Off
VirtualDocumentRoot /home/colix/www/hosts/%0
VirtualScriptAlias /home/colix/www/hosts/%0/cgi-bin
对于这种情况,我总是在配置中使用ServerAlias指令(请参阅) 您好,
M.注意,我在这里提供了动态虚拟主机,所以这不起作用
ServerName domain.tld
ServerAlias www.domain.tld
ServerAlias mx.domain.tld