Ticket #2553 (closed defect: fixed)
tracd reverts to http:// after a POST even if stunnel is being used via a https:// url.
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 0.10.5 |
| Component: | web frontend/tracd | Version: | devel |
| Severity: | major | Keywords: | tracd https stunnel mod_proxy patch apache mod_python |
| Cc: | jorge.vargas@… |
Description (last modified by cboos) (diff)
Running tracd through stunnel, I access trac via a https://url/trac. Everything works fine until I change something (confirm a wiki edit, add a new ticket, login, etc.) and the url forwards to http://url/trac instead of https.
To fix this, I changed the self.scheme = 'http' in TracHTTPRequest in standalone.py to self.scheme='https'. But I imagine this should autodetect in some way.
Status for this issue
This is a problem affecting Trac up to and including 0.10.4.
In current 0.10.5dev and 0.11dev (b1, b2, rc1), there's a new setting in the TracIni#trac-section, use_base_url_for_redirect: when set to true, Trac will use the value set for base_url in the same .ini section as the actual target for the redirects, so you can set it to https://... if you really have no other choices. See also #6013.


