The generic ~* \.(css|js|...)$ regex block matched first, falling back to root /opt/moneyflix/crm where no assets/ dir exists. Using ^~ prefix stops nginx from checking regex blocks when the prefix matches, aliasing /assets/ to crm/Views/assets/ where all assets live.
Fixes 404 on all CSS/JS assets.
The generic `~* \.(css|js|...)$` regex block matched first, falling back to `root /opt/moneyflix/crm` where no `assets/` dir exists. Using `^~` prefix stops nginx from checking regex blocks when the prefix matches, aliasing `/assets/` to `crm/Views/assets/` where all assets live.
Fixes [BIT-24927](/BIT/issues/BIT-24927)
Without ^~ the generic ~* regex block for static extensions matched
first, falling back to root /opt/moneyflix/crm where no assets/ dir
exists → 404 for all CSS/JS.
^~ /assets/ takes precedence over regex blocks, aliasing to
crm/Views/assets/ where the complete asset set lives.
Co-Authored-By: Paperclip <[email protected]>
spark
merged commit 1036e77574 into master2026-06-10 20:04:57 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes 404 on all CSS/JS assets.
The generic
~* \.(css|js|...)$regex block matched first, falling back toroot /opt/moneyflix/crmwhere noassets/dir exists. Using^~prefix stops nginx from checking regex blocks when the prefix matches, aliasing/assets/tocrm/Views/assets/where all assets live.Fixes BIT-24927