Detect Apache version in apache config?

后端 未结 5 467
醉酒成梦
醉酒成梦 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:33

    You could bypass the need to know by using mod_rewrite for your access control:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !\.(long|list|file|types)$
    RewriteRule .* - [F,L]
    

提交回复
热议问题