尝试启动 Apache 时,我不断收到错误消息:
</VirtualHost> without matching <VirtualHost> section
...参考下面列出的 Apache 配置文件的第 4 行:
<VirtualHost 74.117.238.120:80>
ServerName www.mydomain.biz
DocumentRoot /var/www/mydomain
</VirtualHost>
<VirtualHost 74.117.238.120:80>
ServerName codejerk.mydomain.biz
DocumentRoot /var/www/codejerk
</VirtualHost>
<VirtualHost 74.117.238.120:80>
ServerName www.mydomain.tk
DocumentRoot /var/www/mydomain
</VirtualHost>
<VirtualHost 74.117.238.120:80>
ServerName codejerk.mydomain.tk
DocumentRoot /var/www/codejerk
</VirtualHost>
'Listen' 和 'NameVirtualHost' 指令位于调用此指令的文件中:
Listen 80
NameVirtualHost 74.117.238.120:80
这让我发疯——显然每个 VirtualHost 块都有一个开始和结束标签......
有人有想法么?
提前致谢!