V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kechx
V2EX  ›  Apache

刚刚发现 Apache 配置的一个坑,不知道各位遇到过没有?

  •  
  •   kechx · May 8, 2015 · 2587 views
    This topic created in 4007 days ago, the information mentioned may be changed or developed.

    对于apache2.2和apache2.4,部分的配置其实是不同的,比如访问权限

    2.2的配置:

    Order allow,deny
    Allow from all
    

    2.4的配置

    Require all granted
    

    更多不同请看Upgrading to 2.4 from 2.2

    3 replies    2015-05-08 16:23:15 +08:00
    holystrike
        1
    holystrike  
       May 8, 2015
    我记得第一种在2.4里是兼容的
    kungfuchicken
        2
    kungfuchicken  
       May 8, 2015
    这个可以说是用 Apache 2.4 必踩的第一个坑了
    kechx
        3
    kechx  
    OP
       May 8, 2015
    @holystrike 我用的2.2的那个配置服务器启动不了,难道是要改其他配置才能兼容?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1252 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 23:35 · PVG 07:35 · LAX 16:35 · JFK 19:35
    ♥ Do have faith in what you're doing.