Set REMOTE_ADDR to X-Forwarded-For in apache

前端 未结 9 1210
感情败类
感情败类 2020-12-29 10:06

In a situation where Apache is sitting behind a reverse proxy (such as Squid), the cgi environment variable REMOTE_ADDR gets the address of the proxy rather tha

9条回答
  •  时光取名叫无心
    2020-12-29 10:29

    Currently apache module mod_remoteip is the recommended way to do this; rpaf hasn't been reliably maintained, and can cause problems.

提交回复
热议问题