V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
luotao
V2EX  ›  Apache

在 apache2.4.20 的 httpd.conf 文件中添加 Order deny,allow, apache 无法启动

  •  
  •   luotao · 2016-06-01 13:43:06 +08:00 · 3652 次点击
    这是一个创建于 2879 天前的主题,其中的信息可能已经有所发展或是发生改变。

    apache 版本 2.4.20 win64 我在 httpd.conf 文件中添加下面语句: <ifmodule dir_module=""> DirectoryIndex index.html Alias /myblog "E:/myblog" <Directory E:/myblog> Order deny,allow Allow from all </directory> </ifmodule> apache 无法启动,但我把“ Order deny,allow “和“ Allow from all “这两句话去掉之后, apache 则可以正常启动,球万能的网友解答一下!!!

    2 条回复    2016-07-19 12:29:47 +08:00
    alect
        1
    alect  
       2016-06-02 21:10:36 +08:00
    order allow,deny
    deny from all

    我用的这个没问题
    hosiet
        2
    hosiet  
       2016-07-19 12:29:47 +08:00 via Android
    你真的 Google 过这个问题吗?

    https://httpd.apache.org/docs/current/upgrading.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2861 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:59 · PVG 11:59 · LAX 20:59 · JFK 23:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.