Apache2 Can';t使用Apache 2.2在VPS上添加第二个网站(多个域)
我有一个VPS,有一个网站(www.domain1.com)在上面平稳运行(Ubuntu10.04,Apache2.2,RoR,Passenger,mysql)。我现在需要运行第二个网站(www.domain2.com)。但在我完成所有设置后,网站不会显示 我在apache2/sites enabled/domain2.com中添加了Apache2 Can';t使用Apache 2.2在VPS上添加第二个网站(多个域),apache2,Apache2,我有一个VPS,有一个网站(www.domain1.com)在上面平稳运行(Ubuntu10.04,Apache2.2,RoR,Passenger,mysql)。我现在需要运行第二个网站(www.domain2.com)。但在我完成所有设置后,网站不会显示 我在apache2/sites enabled/domain2.com中添加了 <VirtualHost *:80> ServerAdmin email@test.com ServerName www.domain2.
<VirtualHost *:80>
ServerAdmin email@test.com
ServerName www.domain2.com
ServerAlias domain2.com
DirectoryIndex index.html
DocumentRoot /home/user/public_html/domain2.com/current/public
LogLevel debug
ErrorLog /home/user/public_html/domain2.com/current/log/error.log
CustomLog /home/user/public_html/domain2.com/current/log/access.log combined
</VirtualHost>
/etc/apache2/conf.d/servername.conf是:
ServerName general
我不确定这个名字(“将军”)是否相关
在sudo/etc/init.d/apache2重新启动后,domain1.com仍能正常工作,而domain2则不能。域名1和域名2的DNS设置是相同的,一个测试为我提供了域名2的正确DNS服务器。使用www.dns-info.cz的唯一错误是:
区域中NS记录的出勤(信息)错误
区域不包含任何NS记录,尽管至少有一个名称服务器返回此域名的权威数据。区域必须包含与父服务器相同的NS记录
我不确定这个错误是否与问题直接相关,这只是供您参考。有人知道如何解决这个问题吗
ServerName general