.htaccess deny from all

后端 未结 3 524
孤街浪徒
孤街浪徒 2020-12-05 05:59

I have copied one of my old applications and renamed it to New_application. I want to access .htaccess file that is inside the New_application folder. When I opened it with

3条回答
  •  甜味超标
    2020-12-05 06:34

    This syntax has changed with the newer Apache HTTPd server, please see upgrade to apache 2.4 doc for full details.

    2.2 configuration syntax was

    Order deny,allow
    Deny from all
    

    2.4 configuration now is

    Require all denied
    

    Thus, this 2.2 syntax

    order deny,allow
    deny from all
    allow from 127.0.0.1
    

    Would ne now written

    Require local
    

提交回复
热议问题