Apache - AH00548

发布时间:2020-09-20 15:44:14 作者:tywali
来源:网络 阅读:479

1.1.1  现象

Apache启动,日志有如下错误:

AH00548: NameVirtualHost has no effect and will be removed in the next release

1.1.2  原因

配置虚拟站点的时候,根据说明配置如下:

NameVirtualHost *:8080

<VirtualHost *:8080>

    ServerName www.mysite1.com

    #DocumentRoot "C:/Rainman/ProjectWorkspace2.0/SourceCode/Server/wanpush"

    #<Directory "C:/Rainman/ProjectWorkspace2.0/SourceCode/Server/wanpush">

    DocumentRoot "C:/Rainman/ProjectWorkspace3.0_clound/SourceCode"

    <Directory "C:/Rainman/ProjectWorkspace3.0_clound/SourceCode">

       Options Indexes FollowSymLinks

       AllowOverride None

       Order allow,deny

       Allow from all

    </Directory>

    ErrorLog "logs/mysite1.com-error.log"

    CustomLog "logs/mysite1.com-access.log" common

</VirtualHost>

 

红色字体部分报错。

1.1.3  解决

根据错误提示,将上面红色字体部分的配置去掉,重启服务器即可。

推荐阅读:
  1. css设置字体为微软雅黑的方法
  2. 如何理解SpringBoot实现国际化过程

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

微软雅黑 normal he

上一篇:jQuery EasyUI Draggable拖动组件

下一篇:Java程序打印奥林匹克标志方法详解

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》