Problems Using the X-Forwarded-For Log Filter for Windows Servers

I am having some problems trying to use the X-Forwarded-For log filter for Windows Servers. I downloaded the binaries (x86 version) and followed the installation guide http://devcentral.f5.com/weblogs/Joe/archive/2009/08/19/x_forwarded_for_log_filter_for_windows_servers.aspx , but when I try to open a web page on my website I get an error:


HTTP Error 500.0 - Internal Server Error
GetProcAddress call to ISAPI filter "C: \ ISAPI Filters \ F5XFFHttpModule \ F5XFFHttpModule.dll" failed
IIS Web Core Module
Notification Unknown
StaticFile Handler
Error Code 0x8007007f

System Information:

OS - Windows Server 2008 32-bit Data Center
IIS - 7.0
.NET Framework Version 4.0
ISAPI extensions and ISAPI filters are installed normally.

The filter is added to the ISAPI and CGI restrictions and to the ISAPI filters for the web application. The IIS user (UISR) has read and execute permissions for F5XFFHttpModule.dll. The web application pool runs on the .NET Framework 4 in integrated mode, the process model identifier is NetworkService (changing the process model in ApplicationPool does not help). The Debug version does not create a log file :(

What I see in the Windows event log:

Failed to load HTTP DLL Filter Filter C: \ ISAPI \ F5XFFHttpModule \ F5XFFHttpModule.dll. Error data.
Failed to load all ISAPI filters for site "% sitename%". Therefore, the launch of the site is interrupted.

However, the filter works fine on Windows7 x64 + IIS7.5. The error described here is fixed by setting "Enable 32-bit application" to true in the application pool settings of the web application. Kindly to help me sort this out.

Sorry for my English:)

+4
source share
1 answer

Ok, I figured it out.

I use the downloaded HTTP module as an ISAPI filter, that is, without installing it in IIS - this is my mistake. Now I run the install.ps1 script from the distribution of the HTTP module ( http://devcentral.f5.com/weblogs/Joe/archive/2009/12/23/x-forwarded-for-http-module-for-iis7-source- included.aspx ) and everything works fine!

Thanks to Joe Pruitt for your help!

+3
source

Source: https://habr.com/ru/post/1385160/


All Articles