fix(nextcloud): Remove /apps/ location block breaking static files
The ^~ /apps/ location was taking precedence over static file regex locations, causing SVG icons to return 404. The root location's rewrite to index.php already handles app routing correctly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
fe8c3aaf5e
commit
aa86161af0
@ -400,11 +400,6 @@ server {
|
||||
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; }
|
||||
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }
|
||||
|
||||
# Route /apps/* through index.php (fix 403 on app directories)
|
||||
location ^~ /apps/ {
|
||||
rewrite ^ /index.php\$request_uri last;
|
||||
}
|
||||
|
||||
location ~ \.php(?:$|/) {
|
||||
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode(_arm64)?\/proxy) /index.php$request_uri;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user