Detect Apache version in apache config?

后端 未结 5 492
醉酒成梦
醉酒成梦 2020-12-30 00:48

tl;dr: How do I do the following in a .conf or .htaccess file:


  # Do A


  # Do B
&         


        
5条回答
  •  攒了一身酷
    2020-12-30 01:20

    Assuming you have mod_version installed (many distributions ship it by default) you can do the following:

    = 2.4>
        # Require ...
    
    
        # Order ...
        # Deny ...
        # Allow ...
    
    

提交回复
热议问题