Fix Caddy routing: portal now serves capabilities/, internal added. Claim submission page live at portal.debtrecoveryexperts.com/
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Caddy Config Fix — July 25, 2026
|
||||
|
||||
## Issues Fixed
|
||||
|
||||
1. **portal.debtrecoveryexperts.com was serving /var/www/internal/ content** — should serve /var/www/capabilities/ (public claim submission, login, fee calculator, payment)
|
||||
2. **internal.debtrecoveryexperts.com had no Caddy config** — requests were falling through to the default handler
|
||||
3. **No try_files directive on either domain** — / → index.html wasn't working, and clean URLs (no .html) weren't resolving
|
||||
4. **No index.html in /var/www/capabilities/** — claim submission was only accessible via /debt-recovery.html
|
||||
|
||||
## Fix Applied
|
||||
|
||||
```caddy
|
||||
# Added to /etc/caddy/Caddyfile on Core
|
||||
|
||||
internal.debtrecoveryexperts.com {
|
||||
root * /var/www/internal
|
||||
try_files {path} {path}.html /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
# Modified portal.debtrecoveryexperts.com
|
||||
portal.debtrecoveryexperts.com {
|
||||
root * /var/www/capabilities/ # was /var/www/internal/
|
||||
try_files {path} {path}.html /index.html # was missing
|
||||
file_server
|
||||
}
|
||||
```
|
||||
|
||||
Plus: `ln -sf debt-recovery.html /var/www/capabilities/index.html`
|
||||
|
||||
## Verification
|
||||
|
||||
| URL | Before | After |
|
||||
|-----|--------|-------|
|
||||
| portal.debtrecoveryexperts.com/ | 0 bytes (empty) | 20070 bytes — claim form |
|
||||
| portal.debtrecoveryexperts.com/login.html | 404 | 200 — full login page |
|
||||
| portal.debtrecoveryexperts.com/dre-fee-calculator.html | N/A | 200 — fee calculator |
|
||||
| portal.debtrecoveryexperts.com/dre-pay.html | N/A | 200 — payment page |
|
||||
| internal.debtrecoveryexperts.com/ | unconfigured | 302 — Cloudflare Access SSO (correct) |
|
||||
Reference in New Issue
Block a user