diff options
Diffstat (limited to 'apache2.conf')
-rw-r--r-- | apache2.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apache2.conf b/apache2.conf index fdf764a..7408ee8 100644 --- a/apache2.conf +++ b/apache2.conf @@ -157,6 +157,10 @@ RewriteCond %{LA-U:REQUEST_FILENAME} !-d RewriteRule !\. - [H=application/x-httpd-php] + # Disallow access to files/directories whose names begin with "@", returning a 404. + # This makes those files appear to not exist. + RewriteRule "/@" "-" [R=404,L] + <Location /obs> AuthType Basic AuthName "Private area" |