我在底部的 httpd.conf 中添加了以下文本:
<VirtualHost 12.34.56.78.80>
ServerAdmin foo@bar.com
DocumentRoot /var/www/html/some_dir/
ServerName foo-bar.example.com
ErrorLog /logs/foo-bar.example.com-error_log
CustomLog /logs/foo-bar.example.com-access_log common
</VirtualHost>
..然后在尝试运行以下命令时:
/etc/init.d/httpd restart
我收到以下错误:
[error] (EAI 2)Name or service not known: Could not resolve host name 12.34.56.78.80 -- ignoring!
请注意,此帖子的名称和 IP 地址已更改。