一、常規(guī)解決辦法: 1.注消或重啟電腦,然后再試著刪除。 2.進入“安全模式">

日本三级片在线观看视频_西西大胆午夜人体视频无码_少妇无码一区二区_亚洲天堂超碰_极品少妇被猛的白浆直流_91精品云霸高清中文字幕_草草五月天伊人_久久少妇无码专区_欧美激欧美啪啪5老太_日韩在线在线成人

幫助中心 >  技術知識庫 >  云服務器 >  服務器教程 >  Apache NameVirtualHost *:80 has no VirtualHosts問題解決辦法

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

2016-03-15 16:50:15 25227

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

代碼如下:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf


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

NameVirtualHost *:80

如果httpd-vhosts.conf中沒有存在類似:
<VirtualHost *:80>
    ServerAdmin YH@landui.com
    DocumentRoot "D:/WAPM/www"
    ServerName lncdfzh.com.cn
    ServerAlias lncdfzh.com.cn
    ErrorLog "logs/lncdfzh.com.cn-error.log"
    CustomLog "logs/lncdfzh.com.cn-access.log" common
</VirtualHost>

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


提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: