aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-06-14 18:56:28 +0200
committerGitHub <noreply@github.com>2023-06-14 18:56:28 +0200
commitf83d31d6e8e8644b760468779fcaaa91c6863b13 (patch)
tree95442c8af1827b0bb399ed20628618fde9a79cc6 /lib
parentc615681ff3ea4d58967b4e6813137e44ccab6184 (diff)
parent31d5f720fbacda95484194a60dfbbfd4140f3de8 (diff)
downloadnextcloud-server-f83d31d6e8e8644b760468779fcaaa91c6863b13.tar.gz
nextcloud-server-f83d31d6e8e8644b760468779fcaaa91c6863b13.zip
Merge pull request #38689 from nextcloud/backport/38688/stable27
[stable27] fix(apache): Serve `mjs` (module javascript) as static files
Diffstat (limited to 'lib')
-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";