Skip to main content

Command Palette

Search for a command to run...

Pfsense HAProxy

Updated
2 min read
Pfsense HAProxy
  1. Общие настройки frontend

    1. Настраиваем Backend

      1. Настройка для HTTPS

        1. Настройка для HTTP с выполнением редиректа на HTTPS

          1. Настраиваем Frontend для HTTPS

            1. Настраиваем Frontend для HTTP

              | Action | Parameters | Condition acl names | Actions | | | --- | --- | --- | --- | --- | | | http-request redirect | See below | redirect1 | | | | rule: code 301 location https://autotrade.kiev.ua%[path]?%[query] | | | | | | http-request redirect | See below | redirect2 | | | | rule: code 301 location https://%[hdr(host)]%[path]?%[query] | | | | | | http-request redirect | See below | redirect3 | | | | rule: code 301 location https://%[hdr(host)]%[path]?%[query] | | | | | | http-request redirect | See below | redirect4 | | | | rule: code 301 location https://autotrade.kiev.ua%[path]?%[query] | | | | | | http-request redirect | See below | redirect5 | | | | rule: code 301 location https://autotrade.kiev.ua%[path]?%[query] | | | | | | http-request redirect | See below | redirect6 | | | | rule: code 301 location https://autotrade.kiev.ua%[path]?%[query] | | | | | | http-request redirect | See below | redirect7 | | | | rule: code 301 location https://idp.com.cy%[path]?%[query] | | | | | | http-request redirect | See below | redirect8 | | | | rule: code 301 location https://duettestates.com.cy%[path]?%[query] | | | | | | Use Backend | See below | redirect9 | | | | backend: autotrade.kiev.ua-81 | | | | | | Use Backend | See below | redirect10 | |

              Если есть необходимость сайту получать реальный ip клиента то нужно установить галочку Use Client-IP to connect to backend servers в вашем Backend и указать интерфейс на котором находится Backend.

More from this blog

IT Notes

21 posts