r/nextcloud: Update rewrite config for .mjs files
Nextcloud 28+ uses JavaScript modules (`.mjs` files). These need to be served from the filesystem like other static files, so the *mod_rewrite* configuration needs to be updated as such.frigate-exporter
parent
221d3a2be9
commit
5ab0bcd5bf
|
@ -21,7 +21,7 @@ Dav off
|
||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
|
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
|
||||||
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
|
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
|
||||||
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4)$
|
RewriteCond %{REQUEST_FILENAME} !\.(css|js|mjs|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
|
RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
|
||||||
RewriteCond %{REQUEST_FILENAME} !core/img/manifest.json$
|
RewriteCond %{REQUEST_FILENAME} !core/img/manifest.json$
|
||||||
RewriteCond %{REQUEST_FILENAME} !/remote.php
|
RewriteCond %{REQUEST_FILENAME} !/remote.php
|
||||||
|
|
Loading…
Reference in New Issue