在CentOS5虚拟主机 [英] Virtual Host on CentOS5

查看:117
本文介绍了在CentOS5虚拟主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个新的虚拟主机添加到一个CentOS 5盒。

I'm trying to add a new virtual host to a CentOS 5 box.

我添加了一个新节virtualhost.conf匹配现有条目:

I've added a new section in virtualhost.conf matching existing entries:

<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重装

我在目录中放一个占位符的index.php,并希望看到一个它的工作原理逛域时,而是Chrome会显示ERR_NAME_NOT_RESOLVED

I've put a placeholder index.php in the directory, and would expect to see an "it works" when visiting the domain, but instead Chrome shows "ERR_NAME_NOT_RESOLVED"

我失去了什么措施吗? (我已经习惯了在Windows环境下工作,这是我在CentOS第一次真正遭遇)

What steps am I missing here? (I'm used to working in a windows environment, this is my first real encounter with CentOS)

推荐答案

解决了这个作为一个DNS问题,解决本地编辑主机相匹配的IP。

Resolved this as a DNS issue, resolved locally editing hosts to match the IP.

这篇关于在CentOS5虚拟主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆