Modify ↓
Ticket #6472 (closed defect: worksforme)
Opened 4 years ago
Last modified 4 years ago
trac.base_url does not work while running on tracd
| Reported by: | tomasz.sterna@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | web frontend/tracd | Version: | |
| Severity: | normal | Keywords: | base_url |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
I'm running Trac 0.11dev on tracd with nginx frontend (proxy_pass).
Trac as of r6306 stopped honoring trac.base_url trac.ini setting, and uses options given to tracd -b 127.0.0.1 -p 8888 --protocol=http for URL generation.
This causes a problem, because for example after additing wiki page I'm getting redirected to http://127.0.0.1:8888/wiki/... instead of the frontend URL.
This causes Bitten to stop working too - Bitten uses redirection to give builds to slaves.
Attachments
Change History
comment:1 Changed 4 years ago by cboos
- Keywords base_url added
- Resolution set to worksforme
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.



Yes, this has changed recently, see #5064.
You need now to explicitly ask for trac.base_url to be used for the redirects, by setting:
Documented in TracStandalone#Usingapacherewriterules.
I'll update the release notes as well (TracDev/ReleaseNotes/0.11).