Announcement

Collapse
No announcement yet.

htaccess for Apache 2.4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • htaccess for Apache 2.4

    Hi all,

    In the latest .htaccess file, we find the below:

    Code:
    <FilesMatch "(^#.*#|error_log|\.(old|bak|config|dist|inc|ini|log|gz|tar|zip|sh|sql|sw[op])|~)$">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>
    But this is not compatible with Apache 2.4. Syntax has changed since 2.2. Can someone tell me what should be changed here for 2.4?

    Pardon me if this has been answered before. I could not locate any post with this info.

    -S

  • #2
    According to Google it is:

    Code:
    # DENY ALL REQUESTS
    
    # Apache 2.2
    Order deny,allow
    Deny from all
    
    # Apache 2.4+
    Require all denied
    https://htaccessbook.com/access-control-apache-2-4/
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment

    Related Topics

    Collapse

    Working...
    X