麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁(yè) > 網(wǎng)站 > IIS > 正文

讓iis記錄nginx反向代理的真實(shí)ip

2024-08-29 03:14:55
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

一、設(shè)置X-Forwarded-For段

nginx配置示例:

復(fù)制代碼 代碼如下:

server
{
location
{
...
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
...


二、在iis站點(diǎn)上安裝isapi filter

在f5的開發(fā)論壇上找到的,按開發(fā)者的話說,是為了解決iis放在f5后記錄不到用戶ip的問題,管他前端是f5還是nginx還是squid還是haproxy,都可以用。
裝完之后重啟下iis即可。

https://devcentral.f5.com/weblogs/Joe/archive/2009/08/19/x_forwarded_for_log_filter_for_windows_servers.aspx

安裝方法,從官方文檔復(fù)制了過來(lái)的,大家看看咯。
Installation

Follow these steps to install the filter.

Download and unzip the F5XForwardedFor.zip distribution.
Copy the F5XForwardedFor.dll file from the x86/Release or x64/Release directory (depending on your platform) into a target directory on your system. Let's say C:/ISAPIFilters.
Ensure that the containing directory and the F5XForwardedFor.dll file have read permissions by the IIS process. It's easiest to just give full read access to everyone.
Open the IIS Admin utility and navigate to the web server you would like to apply it to.
For IIS6, Right click on your web server and select Properties. Then select the "ISAPI Filters" tab. From there click the "Add" button and enter "F5XForwardedFor" for the Name and the path to the file "c:/ISAPIFilters/F5XForwardedFor.dll" to the Executable field and click OK enough times to exit the property dialogs. At this point the filter should be working for you. You can go back into the property dialog to determine whether the filter is active or an error occurred.
For II7, you'll want to select your website and then double click on the "ISAPI Filters" icon that shows up in the Features View. In the Actions Pane on the right select the "Add" link and enter "F5XForwardedFor" for the name and "C:/ISAPIFilters/F5XForwardedFor.dll" for the Executable. Click OK and you are set to go.
I'd love to hear feedback on this and if there are any other feature request, I'm wide open to suggestions. The source code is included in the download distribution so if you make any changes yourself, let me know!

Good luck and happy filtering!

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 国产88久久久国产精品免费二区 | 中国产一级毛片 | 免费观看一级 | 欧美日韩成人一区二区 | 91免费视频版 | 亚洲性生活免费视频 | 亚洲码无人客一区二区三区 | 久久精品视频首页 | av手机在线免费播放 | 久久91久久久久麻豆精品 | 日韩视频中文 | 亚洲第一色婷婷 | 高清国产免费 | 国产1区2区在线 | 精品国产高清一区二区三区 | 久久精品成人免费国产片桃视频 | 国产精品a一 | 干色视频 | 午夜精品在线视频 | 国产亚洲精品久久久久5区 男人天堂免费 | 久草干 | 欧美激情图区 | 一级电影免费 | 国产成人小视频在线观看 | 在线成人一区二区 | v11av在线播放 | 一级黄色电影网站 | 国产亚洲精品久久久久久久 | 一区二区美女视频 | 九九视屏 | 中文字幕激情视频 | 黄色免费播放网站 | 免费在线观看成人av | 综合精品久久 | 成人午夜精品久久久久久久蜜臀 | 精品中文字幕在线播放 | 欧美性受ⅹ╳╳╳黑人a性爽 | av久草 | 曰韩av在线 | xxxxxx视频| 久久综合九色综合久久久精品综合 |