1# Configuration example. 2# 3# For detailed information about these directives see 4# <URL:http://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html> 5# and for mod_xml2enc see 6# <URL:http://httpd.apache.org/docs/2.4/mod/mod_xml2enc.html> 7# 8# First, to load the module with its prerequisites. Note: mod_xml2enc 9# is not always necessary, but without it mod_proxy_html is likely to 10# mangle pages in encodings other than ASCII or Unicode (utf-8). 11# 12# For Unix-family systems: 13# LoadFile /usr/lib/libxml2.so 14# LoadModule proxy_html_module modules/mod_proxy_html.so 15# LoadModule xml2enc_module modules/mod_xml2enc.so 16# 17# For Windows (I don't know if there's a standard path for the libraries) 18# LoadFile C:/path/zlib.dll 19# LoadFile C:/path/iconv.dll 20# LoadFile C:/path/libxml2.dll 21# LoadModule proxy_html_module modules/mod_proxy_html.so 22# LoadModule xml2enc_module modules/mod_xml2enc.so 23# 24# All knowledge of HTML links has been removed from the mod_proxy_html 25# code itself, and is instead read from httpd.conf (or included file) 26# at server startup. So you MUST declare it. This will normally be 27# at top level, but can also be used in a <Location>. 28# 29# Here's the declaration for W3C HTML 4.01 and XHTML 1.0 30 31ProxyHTMLLinks a href 32ProxyHTMLLinks area href 33ProxyHTMLLinks link href 34ProxyHTMLLinks img src longdesc usemap 35ProxyHTMLLinks object classid codebase data usemap 36ProxyHTMLLinks q cite 37ProxyHTMLLinks blockquote cite 38ProxyHTMLLinks ins cite 39ProxyHTMLLinks del cite 40ProxyHTMLLinks form action 41ProxyHTMLLinks input src usemap 42ProxyHTMLLinks head profile 43ProxyHTMLLinks base href 44ProxyHTMLLinks script src for 45 46# To support scripting events (with ProxyHTMLExtended On), 47# you'll need to declare them too. 48 49ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \ 50 onmouseover onmousemove onmouseout onkeypress \ 51 onkeydown onkeyup onfocus onblur onload \ 52 onunload onsubmit onreset onselect onchange 53 54# If you need to support legacy (pre-1998, aka "transitional") HTML or XHTML, 55# you'll need to uncomment the following deprecated link attributes. 56# Note that these are enabled in earlier mod_proxy_html versions 57# 58# ProxyHTMLLinks frame src longdesc 59# ProxyHTMLLinks iframe src longdesc 60# ProxyHTMLLinks body background 61# ProxyHTMLLinks applet codebase 62# 63# If you're dealing with proprietary HTML variants, 64# declare your own URL attributes here as required. 65# 66# ProxyHTMLLinks myelement myattr otherattr 67# 68########### 69# EXAMPLE # 70########### 71# 72# To define the URL /my-gateway/ as a gateway to an appserver with address 73# http://some.app.intranet/ on a private network, after loading the 74# modules and including this configuration file: 75# 76# ProxyRequests Off <-- this is an important security setting 77# ProxyPass /my-gateway/ http://some.app.intranet/ 78# <Location /my-gateway/> 79# ProxyPassReverse / 80# ProxyHTMLEnable On 81# ProxyHTMLURLMap http://some.app.intranet/ /my-gateway/ 82# ProxyHTMLURLMap / /my-gateway/ 83# </Location> 84# 85# Many (though not all) real-life setups are more complex. 86# 87# See the documentation at 88# http://apache.webthing.com/mod_proxy_html/ 89# and the tutorial at 90# http://www.apachetutor.org/admin/reverseproxies 91