ipv6 support
Initial attempt to fix #11 (my C is a bit rusty).
Merge pull request #11 from webfactory/issue-11

Look at X-Forwarded-Proto for the HTTPS environment variable
Merge pull request #10 from thepug/master

ipv6 support
Refactor IP subnet comparison using apr funcs

* comparison of connecting IP against trusted RPAF_ProxyIPs done with
  apr_ipsubnet_test() rather than previous approach that relied on
  ipv4-limited check_cidr() and strcmp()

* rpaf_looks_like_ip() checks that RPAF_Header request values and
  RPAF_ProxyIPs config values contain valid ipv4/6 addresses

* new RPAF_ForbidIfNotProxy option to forbid requests not connecting
  from RPAF_ProxyIps; otherwise difficult to use Allow/Deny access
  control on proxies after remote address substitution has taken place

* ifdef brackets around code dealing with server_rec->server_scheme
  because that struct member is only in versions >= 2.2.3

* set "remoteip-proxy-ip-list" value in r->notes table to list of
  proxies so other modules can know about trusted intermediaries and
  IP substitution; similar to Apache2.4 mod_remoteip
applies an extract of debian 030_ipv6.patch

this fixed the CVE-2012-3526. 030_ipv6.patch was not applying cleanly.
original bug from http://zecrazytux.net/troubleshooting/apache2-segfault-debugging-tutorial
Merge pull request #17 from phillipp/master

CVE-2012-3526 fix from 030_ipv6.patch
Merge pull request #13 from prxgen/master

Refactor IP subnet comparison using apr funcs
demoved debian build directory for upstream maintainance
[cleanup] code path cleanup
[cleanup] standardised and renamed functions to more appropriate names
Fixed an issue where HTTPS would not be set correctly

mod_rewrite causes our hook to get called twice, but on the second instance the environment is reset, this patch
overcomes this by storing the HTTPS value as a note on the connection and restores it when it sees the note has
been set on the second call. We do not need to restore any other values as the IP and port remain set to our
corrected values from the first call.
This fixes #6 in theory, please test.

Note: You must not have mod_ssl loaded for this to work.
Updated readme since drop of debian build directory
Updated readme with SSL notes and SetPort issue reference