fix(nginx): ^~ /assets/ alias for Views/assets/ — BIT-24927 #3

Merged
spark merged 1 commits from fix/bit-24925-crm-admin-pathmanager into master 2026-06-10 20:04:57 +01:00
Owner

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

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)
spark added 1 commit 2026-06-10 20:04:51 +01:00
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 master 2026-06-10 20:04:57 +01:00
Sign in to join this conversation.