aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-06-07 15:19:44 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-06-14 16:51:58 +0200
commit31d5f720fbacda95484194a60dfbbfd4140f3de8 (patch)
tree1427136a2cc58d39d52da662b04bbe36464ea1a3 /lib/private
parentdfc2888276df13e44c25131b90e3ba6ac172ed0d (diff)
downloadnextcloud-server-31d5f720fbacda95484194a60dfbbfd4140f3de8.tar.gz
nextcloud-server-31d5f720fbacda95484194a60dfbbfd4140f3de8.zip
fix(apache): Serve `mjs` (module javascript) as static files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 7567aaf14b1..3a2e7614dd9 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -529,7 +529,7 @@ class Setup {
$content .= "\n Options -MultiViews";
$content .= "\n RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]";
- $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$";
+ $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|mjs|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\\.php";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\\.ico|manifest\\.json)$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\\.php";