Opened 13 years ago
Last modified 13 years ago
#17316 closed Cleanup/optimization
settings.APPEND_SLASH (CommonMiddleware) does not work well behind multiple proxies — at Initial Version
Reported by: | Damien Nozay | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
- 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).
Note:
See TracTickets
for help on using tickets.