Pfsense HAProxy

Общие настройки frontend

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

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


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


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




Настраиваем 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.


