我正在尝试向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)
发布于 2015-12-07 09:14:35
将此问题作为DNS问题解决,解决本地编辑主机以匹配IP。
https://stackoverflow.com/questions/34120041
复制相似问题