欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Apache NameVirtualHost *:80 has no VirtualHosts問題解決辦法

 更新時間:2014年08月16日 09:38:48   投稿:junjie  
這篇文章主要介紹了Apache NameVirtualHost *:80 has no VirtualHosts問題解決辦法,一個很簡單的配置性錯誤,需要的朋友可以參考下

當(dāng)啟動apache的時候,如果事件管理器出現(xiàn)“Apache NameVirtualHost *:80 has no VirtualHosts”錯誤時,大部分是因為修改了apache的httpd.conf配置文件,將extra/vhosts.conf文件引入到httpd.conf中了。

復(fù)制代碼 代碼如下:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

httpd-vhosts.conf文件中有一句配置語句為

復(fù)制代碼 代碼如下:

NameVirtualHost *:80

如果httpd-vhosts.conf中沒有存在類似:
復(fù)制代碼 代碼如下:

<VirtualHost *:80>
    ServerAdmin webmaster@jb51.net
    DocumentRoot "D:/WAPM/www"
    ServerName www.dbjr.com.cn
    ServerAlias www.dbjr.com.cn
    ErrorLog "logs/www.dbjr.com.cn-error.log"
    CustomLog "logs/www.dbjr.com.cn-access.log" common
</VirtualHost>

配置節(jié),就會在事件管理器中出現(xiàn)Apache NameVirtualHost *:80 has no VirtualHosts錯誤。加上同上面的配置節(jié)就不會出現(xiàn)這個錯誤了。

相關(guān)文章

最新評論