Skip to content

Instantly share code, notes, and snippets.

@BugBuster1701
Last active May 17, 2017 07:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BugBuster1701/5216541 to your computer and use it in GitHub Desktop.
Save BugBuster1701/5216541 to your computer and use it in GitHub Desktop.
Apache 2.4 htaccess
#Zugriff verbieten
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
#Zugriff erlauben
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
@BugBuster1701
Copy link
Author

In Apache 2.4 wird dies alter Syntax zwar noch per Zusatzmodul unterstützt, gilt aber als veraltet. Hier wird sie von dem Modul mod_access_compat bereitgestellt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment