apache - CentOS5 上的虚拟主机

标签 apache centos

我正在尝试向 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,并希望在访问域时看到“它可以工作”,但 Chrome 显示的是“ERR_NAME_NOT_RESOLVED”

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

最佳答案

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

关于apache - CentOS5 上的虚拟主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34120041/

相关文章:

apache - 在 mod_proxy 重定向上保留原始请求 URL

php - Supervisord 让我的 Laravel 队列 :listen throw InvalidArgumentException

postgresql - 在 centos 上连接远程 Postgres 时出错

docker镜像下载包报错

php - 在 Beanstalk 中为 php/symfony 站点配置 apache MPM

java - 在独立 Tomcat 服务器上,可以设置多少更高的值 - maxThreads 和 maxConnections?

linux - 如何使用 XDebug 分析 Codeigniter Web 应用程序?

drupal - Bad Gateway, Drupal, Redmine 通过 VM centos 托管 windows

netbeans - 在 CentOS 上,如何使 x-debug 永久异常(exception)

ajax - Cors 在 Wamp 或 Apache 中不起作用