# I have Internet attached server with apache 2.0 and internal server with JBoss. Now I need proxy incoming connections to
# http://myserver.com/foo/ to my http://10.80.15.37:8080/wfe/
# I decided use mod_proxy_html, bcos internal server use absolute links.
# my httpd.conf (mod_proxy is compiles as built-in module)
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadFile /usr/local/lib/libxml2.so.9.0
LoadModule proxy_html_module modules/mod_proxy_html.so
......
ProxyRequests Off
ProxyErrorOverride on
ProxyPass /eform http://maximk-pc.internal:8080/wfe
ProxyPassReverse /eform http://maximk-pc.internal:8080/wfe
SetOutputFilter proxy-html
#ProxyHTMLURLMap http://maximk-pc.internal:8080/wfe http://external.com/form
ProxyHTMLURLMap ^/wfe/(.*)$ /eform/$1 R,L
ProxyHTMLURLMap http://maximk-pc.internal:8080/wfe/(.*) http://maximk-pc.internal:8080/eform/$1 R,L