From 24aa17ef9d12df960de9d2959b0592cfd535f465 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 27 Sep 2022 15:46:16 -0700 Subject: [PATCH] move html block to it's own directory to avoid 'client denied by server configuration' in error logs --- etc/apache2/conf-available/vpanel.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/etc/apache2/conf-available/vpanel.conf b/etc/apache2/conf-available/vpanel.conf index 42c1320..9ad7430 100644 --- a/etc/apache2/conf-available/vpanel.conf +++ b/etc/apache2/conf-available/vpanel.conf @@ -27,11 +27,6 @@ Alias /panel /srv/www/html/panel # all hidden files and dirs (anything beginning with a .) RewriteRule ^(classes|config|f3|tmp)\/|^\.|^/\. - [R=404] - # deny direct access to html (template) files - - Deny from all - - # Route requests to the framework RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f @@ -40,3 +35,10 @@ Alias /panel /srv/www/html/panel RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] + +# deny direct access to html (template) files + + + Deny from all + +