Created
August 18, 2015 09:04
-
-
Save nl5887/5f11b4efc8e456785869 to your computer and use it in GitHub Desktop.
Globally disable hidden files Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_URI} ^.*/\. | |
| RewriteRule ^(.*)$ - [R=403,L] | |
| LogLevel alert rewrite:trace6 | |
| </IfModule> | |
| To each virtualhost: | |
| RewriteOptions inherit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment