#11877: Document that request.get_host() fails when behind multiple reverse proxies -------------------------------------+------------------------------------- Reporter: tomevans222 | Owner: nobody Type: Uncategorized | Status: closed Component: Documentation | Version: 1.0 Severity: Normal | Resolution: fixed Keywords: proxy forwarded | Triage Stage: Accepted get_host | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+------------------------------------- Changes (by John Borwick <john_borwick@…>):
* ui_ux: => 0 * type: => Uncategorized * severity: => Normal * easy: => 0 Comment: Note for other readers: when using the included MultipleProxyMiddleware, consider whether you want line 30 to pull the *last* element [-1] or the *first* element [0]. The right-most/last is supposed to be the most recent proxy (per <http://www.squid-cache.org/Doc/config/follow_x_forwarded_for/>). The left-most is the furthest upstream proxy. -- Ticket URL: <https://code.djangoproject.com/ticket/11877#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.