我正在使用apache 2.0.64虚拟主机。我正在尝试为服务器上的每个域设置email.domain子域。它适用于除.eu域之外的所有内容。没有子域似乎可以工作,我只是在输入地址时继续发送到平均搜索。
NameVirtualHost *:80
# DEFAULT
<VirtualHost *:80>
DocumentRoot htdocs/dnsolutions.eu/public_html
ServerName 1.2.3.4
</VirtualHost>
# WEBMAIL
<VirtualHost *:80>
DocumentRoot htdocs/dnsolutions.eu/public_html/webmail
ServerName email.dnsolutions.eu
ServerAlias email.* www.email.*
</VirtualHost>
# DNSOLUTIONS.EU
<VirtualHost *:80>
DocumentRoot htdocs/dnsolutions.eu/public_html
ServerName dnsolutions.eu
ServerAlias test.dnsolutions.eu www.dnsolutions.eu dnsolutions-barrowford.co.uk *.dnsolutions-barrowford.co.uk dnsolutions-nelson.co.uk *.dnsolutions-nelson.co.uk dnsolutions-pendle.co.uk *.dnsolutions-pendle.co.uk dnsolutions-lancashire.co.uk *.dnsolutions-lancashire.co.uk
</VirtualHost>
# GR-DARKWOLF.CO.UK
<VirtualHost *:80>
DocumentRoot htdocs/gr-darkwolf.co.uk/public_html
ServerName gr-darkwolf.co.uk
ServerAlias *.gr-darkwolf.co.uk *.gr-darkwolf.me.uk gr-darkwolf.me.uk
</VirtualHost>
它适用于所有.co.uk地址和.me.uk地址。 .eu是唯一一个无法正常工作的人,我无法找到原因。