No description, website, or topics provided.
C Makefile
Failed to load latest commit information.

mod_rpaf - reverse proxy add forward

This module gets values of host and remote address from an reverse proxy, sets host and remote addresss to httpd. This module was originally written by Thomas Eibner

The differences from the original module are:

  • Feature: Support for partial IP address as '10.1.' for RPAFproxy_ips. The author of this patch is unknown.
  • Feature: Recursive ip extraction with RPAFrecursive directive.
  • Bugfix: In the case of APR_HAVE_IPV6-enabled build, access control of Order/Allow/Deny does not work correctly.
  • Bugfix: A wrong remote_addr is set.
  • Support of httpd 1.3 was deleted.

Compile and Install

apxs -i -c -n mod_rpaf-2.0.c
or simply try:
make; make install

Configuration Directives

RPAFenable On
# Enable reverse proxy add forward
RPAFproxy_ips 172.16. 192.168.
# which ips are forwarding requests to us
RPAFsethostname On
# let rpaf update vhost settings
# allows to have the same hostnames as in the "real"
# configuration for the forwarding Apache
RPAFheader X-Forwarded-For
# Allows you to change which header mod_rpaf looks
# for when trying to find the ip the that is forwarding
# our requests
RPAFrecursive On
# If recursive search is disabled, remote address is replaced by the
# last address in RPAFheader directive. If recursive search is
# enabled, remote address is replaced by the last non-trusted address
# in RPAFheader directive.



This software is licensed under the Apache License.


Latest version available from