From: Wilfried Göesgens Date: Mon, 14 Sep 2009 18:45:58 +0000 (+0000) Subject: * add nginx way to handle the remote host header X-Git-Tag: v7.86~846 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=cbaac9c21db2ab8151e611bdf9e51982a65115a7 * add nginx way to handle the remote host header --- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index b728b268b..bca5fdf35 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -764,7 +764,8 @@ InitModule_CONTEXT RegisterHeaderHandler(HKEY("CONTENT-LENGTH"), Header_HandleContentLength); RegisterHeaderHandler(HKEY("CONTENT-TYPE"), Header_HandleContentType); RegisterHeaderHandler(HKEY("USER-AGENT"), Header_HandleUserAgent); - RegisterHeaderHandler(HKEY("X-FORWARDED-HOST"), Header_HandleXFFHost); + RegisterHeaderHandler(HKEY("X-FORWARDED-HOST"), Header_HandleXFFHost); /* Apache way... */ + RegisterHeaderHandler(HKEY("X-REAL-IP"), Header_HandleXFFHost); /* NGinX way... */ RegisterHeaderHandler(HKEY("HOST"), Header_HandleHost); RegisterHeaderHandler(HKEY("X-FORWARDED-FOR"), Header_HandleXFF); RegisterHeaderHandler(HKEY("ACCEPT-ENCODING"), Header_HandleAcceptEncoding);