proxy-html.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. ProxyHTMLLinks a href
  31. ProxyHTMLLinks area href
  32. ProxyHTMLLinks link href
  33. ProxyHTMLLinks img src longdesc usemap
  34. ProxyHTMLLinks object classid codebase data usemap
  35. ProxyHTMLLinks q cite
  36. ProxyHTMLLinks blockquote cite
  37. ProxyHTMLLinks ins cite
  38. ProxyHTMLLinks del cite
  39. ProxyHTMLLinks form action
  40. ProxyHTMLLinks input src usemap
  41. ProxyHTMLLinks head profile
  42. ProxyHTMLLinks base href
  43. ProxyHTMLLinks script src for
  44. # To support scripting events (with ProxyHTMLExtended On),
  45. # you'll need to declare them too.
  46. ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
  47. onmouseover onmousemove onmouseout onkeypress \
  48. onkeydown onkeyup onfocus onblur onload \
  49. onunload onsubmit onreset onselect onchange
  50. # If you need to support legacy (pre-1998, aka "transitional") HTML or XHTML,
  51. # you'll need to uncomment the following deprecated link attributes.
  52. # Note that these are enabled in earlier mod_proxy_html versions
  53. #
  54. # ProxyHTMLLinks frame src longdesc
  55. # ProxyHTMLLinks iframe src longdesc
  56. # ProxyHTMLLinks body background
  57. # ProxyHTMLLinks applet codebase
  58. #
  59. # If you're dealing with proprietary HTML variants,
  60. # declare your own URL attributes here as required.
  61. #
  62. # ProxyHTMLLinks myelement myattr otherattr
  63. #
  64. ###########
  65. # EXAMPLE #
  66. ###########
  67. #
  68. # To define the URL /my-gateway/ as a gateway to an appserver with address
  69. # http://some.app.intranet/ on a private network, after loading the
  70. # modules and including this configuration file:
  71. #
  72. # ProxyRequests Off <-- this is an important security setting
  73. # ProxyPass /my-gateway/ http://some.app.intranet/
  74. # <Location /my-gateway/>
  75. # ProxyPassReverse /
  76. # ProxyHTMLEnable On
  77. # ProxyHTMLURLMap http://some.app.intranet/ /my-gateway/
  78. # ProxyHTMLURLMap / /my-gateway/
  79. # </Location>
  80. #
  81. # Many (though not all) real-life setups are more complex.
  82. #
  83. # See the documentation at
  84. # http://apache.webthing.com/mod_proxy_html/
  85. # and the tutorial at
  86. # http://www.apachetutor.org/admin/reverseproxies