Opened 9 years ago
Last modified 9 years ago
#11981 closed enhancement
Add support for the nginx X-Accel-Redirect header — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.0.6 |
Component: | web frontend | Version: | |
Severity: | normal | Keywords: | nginx |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
I am using X-Accel-Redirect with Trac in FastCGI mode by changing header name in the api.py. I am recommending to make this header name configurable or to add use_x_accel_redirect variable in the config. I can provide patch for this change. On the nginx side appropriate location looks like that:
# serve attachments by nginx directly location /data/trac/files/attachments/ { internal; alias /data/trac/files/attachments/; }
Note:
See TracTickets
for help on using tickets.