Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196272 - www-apache/mod_rpaf (new ebuild)
Summary: www-apache/mod_rpaf (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://stderr.net/apache/rpaf/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-10-18 12:43 UTC by Priit Laes (IRC: plaes)
Modified: 2007-10-21 12:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
10_mod_rpaf.conf (10_mod_rpaf.conf,125 bytes, text/plain)
2007-10-18 12:46 UTC, Priit Laes (IRC: plaes)
Details
mod_rpaf-0.5.ebuild (mod_rpaf-0.5.ebuild,629 bytes, text/plain)
2007-10-18 12:46 UTC, Priit Laes (IRC: plaes)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2007-10-18 12:43:18 UTC
From http://stderr.net/apache/rpaf/

mod_rpaf changes the remote address of the client visible to other Apache modules when two conditions are satisfied. First condition is that the remote client is actually a proxy that is defined in httpd.conf. Secondly if there is an incoming X-Forwarded-For header and the proxy is in it's list of known proxies it takes the last IP from the incoming X-Forwarded-For header and changes the remote address of the client in the request structure. It also takes the incoming X-Host header and updates the virtualhost settings accordingly. For Apache2 mod_proxy it takes the X-Forwared-Host header and updates the virtualhosts...

Ebuild follows...
Comment 1 Priit Laes (IRC: plaes) 2007-10-18 12:46:04 UTC
Created attachment 133743 [details]
10_mod_rpaf.conf
Comment 2 Priit Laes (IRC: plaes) 2007-10-18 12:46:55 UTC
Created attachment 133744 [details]
mod_rpaf-0.5.ebuild

I hope the "hacky" solution to compile the right version for apache2 is good enough...
I also did not bother to add apache1 support.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-21 12:24:44 UTC
in cvs