Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6472 closed defect (worksforme)

trac.base_url does not work while running on tracd

Reported by: tomasz.sterna@… Owned by: Jonas Borgström
Priority: high Milestone:
Component: web frontend/tracd Version:
Severity: normal Keywords: base_url
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (1)

comment:1 by Christian Boos, 17 years ago

Keywords: base_url added
Resolution: worksforme
Status: newclosed

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).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.