CentOS5 上的虚拟主机

Virtual Host on CentOS5

我正在尝试将新的虚拟主机添加到 CentOS 5 机器中。

我在 virtualhost.conf 中添加了一个与现有条目匹配的新部分:

<VirtualHost ip address:80>
    ServerAdmin email@email.com
    DocumentRoot /home/stuff/public_html
    ServerName stuff.stuff.com
    ErrorLog /var/log/httpd/stuff.stuff.com-error_log
    CustomLog /var/log/httpd/stuff.stuff.com-access_log combined
    <Directory /home/stuff/public_html>
        Options All
        AllowOverride All
    </Directory>
    <IfModule mpm_itk_module>
      AssignUserId stuff stuff
    </IfModule>
</VirtualHost>

然后我使用命令重新加载:/etc/init.d/httpd reload

我在目录中放置了一个占位符 index.php,并且希望在访问域时看到 "it works",但 Chrome 显示 "ERR_NAME_NOT_RESOLVED"

我在这里缺少哪些步骤? (习惯了windows环境,第一次真正接触CentOS)

已将此作为 DNS 问题解决,已解决本地编辑主机以匹配 IP。