proxy_html.conf 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. # All knowledge of HTML links has been removed from the mod_proxy_html
  9. # code itself, and is instead read from httpd.conf (or included file)
  10. # at server startup. So you MUST declare it. This will normally be
  11. # at top level, but can also be used in a <Location>.
  12. #
  13. # Here's the declaration for W3C HTML 4.01 and XHTML 1.0
  14. ProxyHTMLLinks a href
  15. ProxyHTMLLinks area href
  16. ProxyHTMLLinks link href
  17. ProxyHTMLLinks img src longdesc usemap
  18. ProxyHTMLLinks object classid codebase data usemap
  19. ProxyHTMLLinks q cite
  20. ProxyHTMLLinks blockquote cite
  21. ProxyHTMLLinks ins cite
  22. ProxyHTMLLinks del cite
  23. ProxyHTMLLinks form action
  24. ProxyHTMLLinks input src usemap
  25. ProxyHTMLLinks head profile
  26. ProxyHTMLLinks base href
  27. ProxyHTMLLinks script src for
  28. # To support scripting events (with ProxyHTMLExtended On),
  29. # you'll need to declare them too.
  30. ProxyHTMLEvents \
  31. onclick ondblclick \
  32. onmousedown onmouseup onmouseover onmousemove onmouseout \
  33. onkeypress onkeydown onkeyup onfocus onblur \
  34. onload onunload onsubmit onreset onselect onchange
  35. # If you need to support legacy (pre-1998, aka "transitional") HTML or XHTML,
  36. # you'll need to uncomment the following deprecated link attributes.
  37. # Note that these are enabled in earlier mod_proxy_html versions
  38. #
  39. # ProxyHTMLLinks frame src longdesc
  40. # ProxyHTMLLinks iframe src longdesc
  41. # ProxyHTMLLinks body background
  42. # ProxyHTMLLinks applet codebase
  43. #
  44. # If you're dealing with proprietary HTML variants,
  45. # declare your own URL attributes here as required.
  46. #
  47. # ProxyHTMLLinks myelement myattr otherattr
  48. #
  49. ###########
  50. # EXAMPLE #
  51. ###########
  52. #
  53. # To define the URL /my-gateway/ as a gateway to an appserver with address
  54. # http://some.app.intranet/ on a private network, after loading the
  55. # modules and including this configuration file:
  56. #
  57. # ProxyRequests Off <-- this is an important security setting
  58. # ProxyPass /my-gateway/ http://some.app.intranet/
  59. # <Location /my-gateway/>
  60. # ProxyPassReverse /
  61. # ProxyHTMLEnable On
  62. # ProxyHTMLURLMap http://some.app.intranet/ /my-gateway/
  63. # ProxyHTMLURLMap / /my-gateway/
  64. # </Location>
  65. #
  66. # Many (though not all) real-life setups are more complex.
  67. #
  68. # See the documentation at
  69. # http://apache.webthing.com/mod_proxy_html/
  70. # and the tutorial at
  71. # http://www.apachetutor.org/admin/reverseproxies