Date: Tue, 6 Jul 2004 09:20:51 -0700 (PDT) From: "bruno@tinkerbox.org" <bruno@mail.tinkerbox.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/68731: new port: mod_proxy_html Message-ID: <200407061620.i66GKpu0096958@duron.bschwand.net> Resent-Message-ID: <200407061630.i66GUMpm034815@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68731 >Category: ports >Synopsis: new port: mod_proxy_html >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jul 06 16:30:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: bruno >Release: FreeBSD 4.8-STABLE i386 >Organization: tinkerbox.org >Environment: System: FreeBSD duron.bschwand.net 4.8-STABLE FreeBSD 4.8-STABLE #2: Mon Jan 19 12:02:11 PST 2004 bruno@duron.bschwand.net:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: new port: mod_proxy_html. rewrites URLs in proxied documents >How-To-Repeat: N/A >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_html # ./mod_proxy_html/Makefile # ./mod_proxy_html/distinfo # ./mod_proxy_html/pkg-descr # ./mod_proxy_html/pkg-message # ./mod_proxy_html/pkg-plist # echo c - . mkdir -p . > /dev/null 2>&1 echo c - ./mod_proxy_html mkdir -p ./mod_proxy_html > /dev/null 2>&1 echo x - ./mod_proxy_html/Makefile sed 's/^X//' >./mod_proxy_html/Makefile << 'END-of-./mod_proxy_html/Makefile' X# New ports collection makefile for: mod_proxy_html X# Date created: 29 June 2004 X# Whom: bruno schwander <bruno@tinkerbox.org> X# X XPORTNAME= mod_proxy_html XPORTVERSION= 1.1 XCATEGORIES= www XMASTER_SITES= http://apache.webthing.com/mod_proxy_html/ X XMAINTAINER= bruno@tinkerbox.org XCOMMENT= Output Filter to rewrite (X)HTML links into a proxy's address space X XUSE_APACHE= yes XLIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2:install X XDISTFILES= mod_proxy_html.c XEXTRACT_ONLY= XNO_WRKSUBDIR= yes X Xdo-extract: X ${MKDIR} ${WRKDIR} X ${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/ X Xdo-build: X @cd ${WRKSRC} && \ X ${APXS} -I ${LOCALBASE}/include/libxml2/ -c mod_proxy_html.c X Xdo-install: X ${APXS} -i -A -n proxy_html ${WRKSRC}/.libs/mod_proxy_html.so X ${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-./mod_proxy_html/Makefile echo x - ./mod_proxy_html/distinfo sed 's/^X//' >./mod_proxy_html/distinfo << 'END-of-./mod_proxy_html/distinfo' XMD5 (mod_proxy_html.c) = a7a2bb9c24ee548ea9b16c35e7cab76a END-of-./mod_proxy_html/distinfo echo x - ./mod_proxy_html/pkg-descr sed 's/^X//' >./mod_proxy_html/pkg-descr << 'END-of-./mod_proxy_html/pkg-descr' Xmod_proxy_html is based on one specific capability of mod_accessibility, Xnamely that of rewriting HTML links so that they don't break in a reverse Xproxy. The need for it was identified in a Usenet thread. X XThe problem arises when links such as X<a href="http://private- address.example.com/"> are used in a proxied Xpage, when the server private- address.example.com needs to be proxied X(for example, because its address is not valid beyond a private network). Xmod_proxy_html rewrites such URLs into the proxy's own namespace. X XThe key directive required for this is ProxyHTMLURLMap. XThis is functionally identical to AccessibilityURLMap, which is Xdocumented in the mod_accessibility pages. X XWWW: http://apache.webthing.com/mod_proxy_html/ END-of-./mod_proxy_html/pkg-descr echo x - ./mod_proxy_html/pkg-message sed 's/^X//' >./mod_proxy_html/pkg-message << 'END-of-./mod_proxy_html/pkg-message' X************************************************************ XPlease edit your apache.conf or httpd.conf to enable and Xsetup this module. X XWhen it's done, do the following to take effect: X X apachectl configtest (and correct any errors reported) X apachectl restart X X************************************************************ END-of-./mod_proxy_html/pkg-message echo x - ./mod_proxy_html/pkg-plist sed 's/^X//' >./mod_proxy_html/pkg-plist << 'END-of-./mod_proxy_html/pkg-plist' X@exec %D/sbin/apxs -e -a -n proxy_html X@unexec %D/sbin/apxs -e -A -n proxy_html mod_proxy_html.so Xlibexec/apache2/mod_proxy_html.so END-of-./mod_proxy_html/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407061620.i66GKpu0096958>