diff options
author | Will Andrews <will@FreeBSD.org> | 2001-03-31 02:14:14 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-03-31 02:14:14 +0000 |
commit | 7a8d05f3a0d066f801ade1ade1919a021286e996 (patch) | |
tree | 0d41a919409cc543c3e9c5b666ff4d2e338bb0ca /www/mod_proxy_add_forward | |
parent | Add p5-LJ-TextMessage 1.2, a perl5 interface to send text messages to (diff) |
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>
Notes
Notes:
svn path=/head/; revision=40619
Diffstat (limited to 'www/mod_proxy_add_forward')
-rw-r--r-- | www/mod_proxy_add_forward/Makefile | 38 | ||||
-rw-r--r-- | www/mod_proxy_add_forward/distinfo | 1 | ||||
-rw-r--r-- | www/mod_proxy_add_forward/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_proxy_add_forward/pkg-descr | 9 | ||||
-rw-r--r-- | www/mod_proxy_add_forward/pkg-plist | 3 |
5 files changed, 52 insertions, 0 deletions
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 <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> 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" |