From 7a8d05f3a0d066f801ade1ade1919a021286e996 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Sat, 31 Mar 2001 02:14:14 +0000 Subject: 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 --- www/Makefile | 1 + www/mod_proxy_add_forward/Makefile | 38 +++++++++++++++++++++++++++++++++++ www/mod_proxy_add_forward/distinfo | 1 + www/mod_proxy_add_forward/pkg-comment | 1 + www/mod_proxy_add_forward/pkg-descr | 9 +++++++++ www/mod_proxy_add_forward/pkg-plist | 3 +++ 6 files changed, 53 insertions(+) create mode 100644 www/mod_proxy_add_forward/Makefile create mode 100644 www/mod_proxy_add_forward/distinfo create mode 100644 www/mod_proxy_add_forward/pkg-comment create mode 100644 www/mod_proxy_add_forward/pkg-descr create mode 100644 www/mod_proxy_add_forward/pkg-plist (limited to 'www') diff --git a/www/Makefile b/www/Makefile index 28bf6a23d8cb..db64123a87a7 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 diff --git a/www/mod_proxy_add_forward/Makefile b/www/mod_proxy_add_forward/Makefile new file mode 100644 index 000000000000..ff9caea1df18 --- /dev/null +++ b/www/mod_proxy_add_forward/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: mod_proxy_add_forward +# Date created: 25 March 2001 +# Whom: Anders Nordby +# +# $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 diff --git a/www/mod_proxy_add_forward/distinfo b/www/mod_proxy_add_forward/distinfo new file mode 100644 index 000000000000..eb2b7a254fc1 --- /dev/null +++ b/www/mod_proxy_add_forward/distinfo @@ -0,0 +1 @@ +MD5 (mod_proxy_add_forward.c) = 65e2cb065db66654ef58171346705934 diff --git a/www/mod_proxy_add_forward/pkg-comment b/www/mod_proxy_add_forward/pkg-comment new file mode 100644 index 000000000000..66e998990a3a --- /dev/null +++ b/www/mod_proxy_add_forward/pkg-comment @@ -0,0 +1 @@ +Apache module that adds a client IP header to outgoing proxy requests diff --git a/www/mod_proxy_add_forward/pkg-descr b/www/mod_proxy_add_forward/pkg-descr new file mode 100644 index 000000000000..95b1cb6b6325 --- /dev/null +++ b/www/mod_proxy_add_forward/pkg-descr @@ -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/ diff --git a/www/mod_proxy_add_forward/pkg-plist b/www/mod_proxy_add_forward/pkg-plist new file mode 100644 index 000000000000..4751f97c197b --- /dev/null +++ b/www/mod_proxy_add_forward/pkg-plist @@ -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" -- cgit v1.2.3