1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

Add mod_proxy_add_forward 20010201, an apache module that adds a

client IP header to outgoing proxy requests.

PR:		26074
Submitted by:	Anders Nordby <anders@fix.no>
This commit is contained in:
Will Andrews 2001-03-31 02:14:14 +00:00
parent 5b20a48418
commit 7a8d05f3a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40619
6 changed files with 53 additions and 0 deletions

View File

@ -118,6 +118,7 @@
SUBDIR += mod_perl
SUBDIR += mod_php3
SUBDIR += mod_php4
SUBDIR += mod_proxy_add_forward
SUBDIR += mod_python
SUBDIR += mod_roaming
SUBDIR += mod_ruby

View File

@ -0,0 +1,38 @@
# New ports collection makefile for: mod_proxy_add_forward
# Date created: 25 March 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= mod_proxy_add_forward
PORTVERSION= 20010201
CATEGORIES= www
MASTER_SITES= http://develooper.com/code/mpaf/ \
http://www.freenix.no/~anders/
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .c
MAINTAINER= anders@fix.no
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
NO_WRKSUBDIR= YES
APXS?= ${LOCALBASE}/sbin/apxs
do-extract:
@${MKDIR} ${WRKDIR}
@${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}
do-build:
cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c
do-install:
cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so
@${ECHO} "================================================================================"
@${ECHO} "Enable mod_proxy_add_forward in Apache's config manually."
@${ECHO} "================================================================================"
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (mod_proxy_add_forward.c) = 65e2cb065db66654ef58171346705934

View File

@ -0,0 +1 @@
Apache module that adds a client IP header to outgoing proxy requests

View File

@ -0,0 +1,9 @@
This is an Apache module that adds a 'X-Forwarded-For' header to outgoing proxy
requests like Squid does.
You can then get the client ip back on the "proxied host" by setting
r->connection->remote_ip from this header.
See the source for more info.
WWW: http://develooper.com/code/mpaf/

View File

@ -0,0 +1,3 @@
libexec/apache/mod_proxy_add_forward.so
@exec ${PKG_PREFIX}/sbin/apxs -e -A -n proxy_add_forward mod_proxy_add_forward.so; echo " enable mod_proxy_add_forward in Apache's config manually"
@unexec ${PKG_PREFIX}/sbin/apxs -e -A -n proxy_add_forward mod_proxy_add_forward.so || echo " remove mod_proxy_add_forward from Apache's config manually"