首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS5上的虚拟主机

CentOS5上的虚拟主机
EN

Stack Overflow用户
提问于 2015-12-06 16:50:47
回答 1查看 163关注 0票数 0

我正在尝试向CentOS 5框中添加一个新的虚拟主机。

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

代码语言:javascript
复制
<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,在访问域时我希望看到一个“它工作”,但是Chrome却显示了"ERR_NAME_NOT_RESOLVED“

我错过了什么台阶?(我习惯于在windows环境中工作,这是我第一次真正接触到CentOS)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-07 09:14:35

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34120041

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档