Edgewall Software

Ticket #6472 (closed defect: worksforme)

Opened 7 months ago

Last modified 7 months 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:

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

Changed 7 months ago by cboos

  • keywords base_url added
  • status changed from new to closed
  • resolution set to worksforme

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:

[trac]
use_base_url_for_redirect = true

Documented in TracStandalone#Usingapacherewriterules.

I'll update the release notes as well (TracDev/ReleaseNotes/0.11#Caveats).

Add/Change #6472 (trac.base_url does not work while running on tracd)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.