apache2,vhosts和servername指令
我正在我的Ubuntu桌面机上运行一个Apache开发环境。 当我启动apache,我得到错误 "apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName … waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" 我试图通过添加一行到我的apache.conf来解决这个问题:servername myhost 这消除了错误信息。 但是,使用这种configuration,对虚拟主机的请求不受尊重。 只有默认主机是可访问的。 有没有办法可以消除这个错误,并有虚幻?