ports/69737: New port: www/mod_proxy_html: rewrite HTML links in proxied content

David Lay dsl at webize.com.au
Thu Jul 29 04:00:44 UTC 2004


>Number:         69737
>Category:       ports
>Synopsis:       New port: www/mod_proxy_html: rewrite HTML links in proxied content
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 29 04:00:43 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Lay
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
Webize
>Environment:
System: FreeBSD mayhem.webize.com.au 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #12: Fri Jul 9 16:57:41 EST 2004

>Description:
mod_proxy_html is an output filter to rewrite HTML links in a proxy
situation, to ensure that links work for users outside the proxy.  It
serves the same purpose as Apache's ProxyPassReverse directive does for
HTTP headers, and is an essential component of a reverse proxy.

WWW: http://apache.webthing.com/mod_proxy_html/

- David Lay <dsl at webize.com.au>
>How-To-Repeat:

>Fix:
--- mod_proxy_html.shar begins here ---
# 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-plist
#
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:		2004-07-29
X# Whom:			David Lay <dsl at webize.com.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_proxy_html
XPORTVERSION=	2.1
XCATEGORIES=	www
XMASTER_SITES=	http://apache.webthing.com/${PORTNAME}/
XDISTNAME=	${PORTNAME}
XEXTRACT_SUFX=	.c
X
XMAINTAINER=	dsl at webize.com.au
XCOMMENT=	Apache module for rewriting HTML links in proxied content
X
XLIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2
X
XUSE_APACHE=	yes
XWITH_APACHE2=	yes
XNO_WRKSUBDIR=	yes
X
XXML2_INC=	${LOCALBASE}/include/libxml2
XXML2_LIB=	${LOCALBASE}/lib
X
Xdo-extract:
X	@${MKDIR} ${WRKDIR}
X	@${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c
X
Xdo-build:
X	@(cd ${WRKSRC} && ${APXS} -c -I ${XML2_INC} -L ${XML2_LIB} -lxml2 ${PORTNAME}.c)
X
Xdo-install:
X	@(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la)
X	@${ECHO} "================================================================================"
X	@${ECHO} "Enable mod_proxy_html in Apache's config manually."
X	@${ECHO} "================================================================================"
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) = b1828fb7fb9305ef14c583c99e1fed02
XSIZE (mod_proxy_html.c) = 31392
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 an output filter to rewrite HTML links in a proxy
Xsituation, to ensure that links work for users outside the proxy.  It
Xserves the same purpose as Apache's ProxyPassReverse directive does for
XHTTP headers, and is an essential component of a reverse proxy.
X
XWWW: http://apache.webthing.com/mod_proxy_html/
X
X- David Lay <dsl at webize.com.au>
END-of-mod_proxy_html/pkg-descr
echo x - mod_proxy_html/pkg-plist
sed 's/^X//' >mod_proxy_html/pkg-plist << 'END-of-mod_proxy_html/pkg-plist'
Xlibexec/apache2/mod_proxy_html.so
X at exec %D/sbin/apxs -e -A -n proxy_html %D/%F
X at unexec %D/sbin/apxs -e -A -n proxy_html %D/%F
END-of-mod_proxy_html/pkg-plist
exit
--- mod_proxy_html.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list