Ticket #6013 (new enhancement)
[PATCH] Support X_FORWARDED_PROTO header
| Reported by: | John Hampton <pacopablo@…> | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | nginx proxy https |
| Cc: |
Description
In many proxy configurations, specifically when running tracd behind Nginx, https:// request will get redirected to http://
One solution is to set the base_url in trac.ini. However, this effectively destroys the possibility of having http:// access.
A solution is to simple allow the proxy to set the X_FORWARDED_PROTO header. Attached is a patch to respect the X_FORWARDED_PROTO header.
An example usage in Nginx would be:
location / {
proxy_pass http://dev;
proxy_set_header X-Forwarded-Proto https;
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


