<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Preserving Remote IP/Host while proxying

      因?yàn)檫@個(gè)文章用一般手段看不到,所以摘錄下來備用

      (From http://kasunh.wordpress.com/2011/10/11/preserving-remote-iphost-while-proxying/)

      You host your web application with a hosting provider. Your application log/access IP address of your users and you get 127.0.0.1 or some other private IP. Deja Vu? Most likely reason for the above scenario is your hosting provider is using a proxy and the proxy server sits in the same machine or in the same network. Under a such situation we end up using X-Forwarded-For header.

      I am aware of two solutions to be used in such a proxy setup so the developer doesn’t have to end up using X-Forwarded-For header.

      1.) When the proxy server is an Apache, using ProxyPreserveHost directive in mod_proxy.
      This can be used to preserve the remote host not the remote ip. This is useful for situations where name based virtual hosting is used and the backend server needs to know the virtual name of host.
      Open mod_proxy configuration file of your proxy server and enter directive, ProxyPreserveHost On, and restart your apache instance.

      2.) When backend server is apache, use mod_rpaf
      This apache module can be used to preserve both remote IP/HOST. Internally it uses X-Forwarded-For header to detect a proxy in it’s list of known proxies and reset the headers accordingly. This works with any proxy server in the front end provided that the proxy server sets X-Forwarded-For header. To use mod_rpaf, install and enable it in the backend server and add following directives in the module’s configuration.
      RPAFenable On
      RPAFsethostname On
      RPAFproxy_ips 127.0.0.1

      Remote IP is automatically preserved when RPAFenable On directive is used. RPAFsethostname On directive should be used to preserve host and RPAFproxy_ips is the list of known proxy ips.

      Restart backend apache server and you are good to go.

      posted on 2013-08-25 23:26  老翅寒暑  閱讀(592)  評論(0)    收藏  舉報(bào)

      導(dǎo)航

      主站蜘蛛池模板: 国产美女久久久亚洲综合| аⅴ天堂中文在线网| 国产精品亚洲一区二区三区| 国产二区三区不卡免费| 亚洲视频免费一区二区三区| 性色av一区二区三区v视界影院| 麻豆一区二区三区精品视频| 久久91精品牛牛| 国产欧美精品区一区二区三区| 亚洲国产成人不卡高清麻豆| 亚洲人成电影网站色mp4| 成人一区二区人妻不卡视频| 亚洲成av人片无码天堂下载| 一卡2卡三卡4卡免费网站| 人妻无码中文专区久久app| 91麻精品国产91久久久久| 偷拍一区二区三区在线视频| 国产va在线观看免费| 国产精品自拍视频我看看| 国产精品国产精品国产专区不卡 | 亚洲综合国产伊人五月婷| 2019亚洲午夜无码天堂| 国产午夜精品福利视频| 欧美亚洲h在线一区二区| 福利视频在线播放| 欧美视频精品免费覌看| 免费萌白酱国产一区二区三区 | 人妻少妇偷人精品视频| 厨房与子乱在线观看| 最新精品国偷自产在线美女足| 日韩av日韩av在线| 欧美激情一区二区三区成人 | 久久综合亚洲色一区二区三区| 曰韩无码二三区中文字幕| 国产日韩精品欧美一区喷水| 黄色三级亚洲男人的天堂| 99久久精品久久久久久婷婷| 国产乱人伦偷精品视频下| 激情内射亚洲一区二区三区| 一本色道久久加勒比综合| 日韩一区二区三区女优丝袜 |