我在Debian上安装了libapache2-mod-rpaf软件包 ,因为mod_remoteip似乎不可用。
我发现一个github回购,但configuration选项是不同的。 例如,在存储库中,使用了RPAF_Enable
,但该包的默认configuration使用RPAFenable
(请参阅包的默认configuration )
我在哪里可以find我正在使用的模块的文档?
GitHub鼓励分叉。 你引用的Git仓库是一个不同于你的Debian软件包的分支。 假设您使用Debian wheezy的 libapache2-mod-rpaf ,请检查libapache2-mod-rpaf_0.6-7 + wheezy1.dsc 。
Format: 3.0 (quilt) Source: libapache2-mod-rpaf Binary: libapache2-mod-rpaf Architecture: any Version: 0.6-7+wheezy1 Maintainer: Sergey B Kirpichev <[email protected]> Dm-Upload-Allowed: yes Homepage: http://stderr.net/apache/rpaf/ Standards-Version: 3.9.3 Vcs-Browser: http://git.debian.org/?p=collab-maint/libapache2-mod-rpaf.git;a=summary Vcs-Git: git://git.debian.org/git/collab-maint/libapache2-mod-rpaf.git Build-Depends: apache2-threaded-dev, debhelper (>= 9) Package-List: libapache2-mod-rpaf deb httpd extra
首先,您可能会注意到http://stderr.net/apache/rpaf/是一个死链接。 目前尚不清楚该软件包是否得到上游支持。
接下来,尝试检查Vcs-Browser URL ,然后浏览tree
→ mod_rpaf-2.0.c
。 在207号线 ,你会看到
static const command_rec rpaf_cmds[] = { AP_INIT_FLAG( "RPAFenable", rpaf_enable, NULL, RSRC_CONF, "Enable mod_rpaf" ), AP_INIT_FLAG( "RPAFsethostname", rpaf_sethostname, NULL, RSRC_CONF, "Let mod_rpaf set the hostname from X-Host header and update vhosts" ), AP_INIT_ITERATE( "RPAFproxy_ips", rpaf_set_proxy_ip, NULL, RSRC_CONF, "IP(s) of Proxy server setting X-Forwarded-For header" ), AP_INIT_TAKE1( "RPAFheader", rpaf_set_headername, NULL, RSRC_CONF, "Which header to look for when trying to find the real ip of the client in a proxy setup" ), { NULL } };
这些指令与Debian喘息声中的mod_rpaf 0.6相关。
文档在这里:
https://github.com/y-ken/mod_rpaf https://github.com/gnif/mod_rpaf
示例configuration
LoadModule rpaf_module modules / mod_rpaf-2.0.so
RPAFenable On
RPAFproxy_ips 192.168。 10.0.0
RPAFheader X-Forwarded-For
RPAFsetHostnameclosures
RPAFclosures
RPAFsetportclosures
我不知道为什么他们删除configuration示例中的下划线,但不是当他们解释主页上的设置。