Date: Sun, 25 Mar 2001 17:30:07 +0200 (CEST) From: Anders Nordby <anders@fix.no> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26074: New port: www/mod_proxy_add_forward Message-ID: <20010325153007.C0A043CCD@totem.fix.no>
next in thread | raw e-mail | index | archive | help
>Number: 26074 >Category: ports >Synopsis: New port: www/mod_proxy_add_forward >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 25 07:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.2-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: FreeBSD eggsilo.localnet 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Feb 3 23:01:01 CET 2001 root@eggsilo.localnet:/space/tmp/obj/usr/src/sys/EGGSILO i386 >Description: New port of mod_proxy_add_forward, an Apache module that adds a client IP header to outgoing proxy requests. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mod_proxy_add_forward # mod_proxy_add_forward/Makefile # mod_proxy_add_forward/distinfo # mod_proxy_add_forward/pkg-comment # mod_proxy_add_forward/pkg-descr # mod_proxy_add_forward/pkg-plist # echo c - mod_proxy_add_forward mkdir -p mod_proxy_add_forward > /dev/null 2>&1 echo x - mod_proxy_add_forward/Makefile sed 's/^X//' >mod_proxy_add_forward/Makefile << 'END-of-mod_proxy_add_forward/Makefile' X# New ports collection makefile for: mod_proxy_add_forward X# Date created: 25 March 2001 X# Whom: Anders Nordby <anders@fix.no> X# X# $FreeBSD$ X# X XPORTNAME= mod_proxy_add_forward XPORTVERSION= 20010201 XCATEGORIES= www XMASTER_SITES= http://develooper.com/code/mpaf/ \ X http://www.freenix.no/~anders/ XDISTFILES= ${PORTNAME}.c X XMAINTAINER= anders@fix.no X XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 XRUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 X XNO_WRKSUBDIR= YES X XAPXS?= ${LOCALBASE}/sbin/apxs X Xdo-extract: X @${MKDIR} ${WRKDIR} X @${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR} X Xdo-build: X cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c X Xdo-install: X cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so X @${ECHO} "================================================================================" X @${ECHO} "Enable mod_proxy_add_forward in Apache's config manually." X @${ECHO} "================================================================================" X X.include <bsd.port.mk> END-of-mod_proxy_add_forward/Makefile echo x - mod_proxy_add_forward/distinfo sed 's/^X//' >mod_proxy_add_forward/distinfo << 'END-of-mod_proxy_add_forward/distinfo' XMD5 (mod_proxy_add_forward.c) = 65e2cb065db66654ef58171346705934 END-of-mod_proxy_add_forward/distinfo echo x - mod_proxy_add_forward/pkg-comment sed 's/^X//' >mod_proxy_add_forward/pkg-comment << 'END-of-mod_proxy_add_forward/pkg-comment' XAn Apache module that adds a client IP header to outgoing proxy requests END-of-mod_proxy_add_forward/pkg-comment echo x - mod_proxy_add_forward/pkg-descr sed 's/^X//' >mod_proxy_add_forward/pkg-descr << 'END-of-mod_proxy_add_forward/pkg-descr' XThis is an Apache module that adds a 'X-Forwarded-For' header to outgoing proxy Xrequests like Squid does. X XYou can then get the client ip back on the "proxied host" by setting Xr->connection->remote_ip from this header. X XSee the source for more info. X XWWW: http://develooper.com/code/mpaf/ END-of-mod_proxy_add_forward/pkg-descr echo x - mod_proxy_add_forward/pkg-plist sed 's/^X//' >mod_proxy_add_forward/pkg-plist << 'END-of-mod_proxy_add_forward/pkg-plist' Xlibexec/apache/mod_proxy_add_forward.so X@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" X@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" END-of-mod_proxy_add_forward/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010325153007.C0A043CCD>