move html block to it's own directory to avoid 'client denied by server configuration' in error logs

This commit is contained in:
Matthew Saunders Brown 2022-09-27 15:46:16 -07:00
parent 9259d6cd6b
commit 24aa17ef9d

View File

@ -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
<FilesMatch "\.(htm|html)$">
Deny from all
</FilesMatch>
# 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]
</Directory>
# deny direct access to html (template) files
<Directory /srv/www/html/panel/ui>
<FilesMatch "\.(htm|html)$">
Deny from all
</FilesMatch>
</Directory>