From 59eea397417ed9efb200d9d132eb78c52ac25e7e Mon Sep 17 00:00:00 2001 From: ic Date: Thu, 2 Jan 2020 21:03:02 +0100 Subject: [PATCH] new (static) file type for javascript modules Special file type for javascript modules ( https://v8.dev/features/modules#mjs ) --- www/.htaccess | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/.htaccess b/www/.htaccess index 4cfc52e..b35c4ec 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -1,5 +1,5 @@ # Apache configuration file (see https://httpd.apache.org/docs/current/mod/quickreference.html) -Allow from all +Require all granted # disable directory listing @@ -11,13 +11,17 @@ Allow from all RewriteEngine On # RewriteBase / + # use HTTPS + # RewriteCond %{HTTPS} !on + # RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + # prevents files starting with dot to be viewed by browser RewriteRule /\.|^\.(?!well-known/) - [F] # front controller RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz|map)$ index.php [L] + RewriteRule !\.(pdf|js|mjs|ico|gif|jpg|jpeg|png|webp|svg|css|rar|zip|7z|tar\.gz|map|eot|ttf|otf|woff|woff2)$ index.php [L] # enable gzip compression