diff options
Diffstat (limited to 'apache2.conf')
-rw-r--r-- | apache2.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apache2.conf b/apache2.conf index 6cd31b0..fdf764a 100644 --- a/apache2.conf +++ b/apache2.conf @@ -150,6 +150,12 @@ # General global settings here... AddDefaultCharset utf-8 Header always set Strict-Transport-Security "max-age=31536000" + RewriteEngine On + + # For URIs in the root directory without any extension, which are files, use PHP handler + RewriteCond %{REQUEST_URI} "^/[^/.]+$" + RewriteCond %{LA-U:REQUEST_FILENAME} !-d + RewriteRule !\. - [H=application/x-httpd-php] <Location /obs> AuthType Basic |