#17316 closed Cleanup/optimization (fixed)
settings.APPEND_SLASH (CommonMiddleware) does not work well behind multiple proxies
Description (last modified by ) ¶
- https://code.djangoproject.com/ticket/11877 as well.
- https://docs.djangoproject.com/en/1.3/ref/request-response/#django.http.HttpRequest.get_host
I'm using the MultipleProxyMiddleware
middleware.
settings.APPEND_SLASH
defaults to True
.
MultipleProxyMiddleware
needs to be enabled *before* CommonMiddleware
for APPEND_SLASH
to work.
Maybe all this needs is a few more lines where MultipleProxyMiddleware
is documented (or directions to put MultipleProxyMiddleware
first would work too I guess).
Change History (6)
comment:1 by , 13 years ago
Description: | modified (diff) |
---|
by , 13 years ago
Attachment: | 17316.patch added |
---|
comment:2 by , 13 years ago
Component: | Uncategorized → Documentation |
---|---|
Easy pickings: | set |
Has patch: | set |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:3 by , 13 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Fixed formatting.