Skip to content

How to enable HTTP HA proxy

Uplusware edited this page Nov 22, 2017 · 4 revisions

set "HTTPReverseProxyEnable" to "yes" in /etc/heaphttpd/heaphttpd.conf and restart the service.

  1. Enter into reverse/ directory.

  2. Design delivery policy in reverse/httpreverse.cpp via C/C++

    • Modify the request URL as the following format: http://domain_name_or_ip1:port1|domain_name_or_ip2:port2/xxxx or http://domain_name_or_ip1:port1|domain_name_or_ip2:port2|domain_name_or_ip3:port3/xxxx.
    • Only support 3 destination host/port address. Use | to split them.
  3. sudo make install

  4. sudo /etc/init.d/heaphttpd reverse to reload the reverse extension.