Action disabled: revisions

В секции frontend надо прописать:

Для редиректа всего траффика:

redirect scheme https if !{ ssl_fc }

Если фронтендов/бекэндов много, и редиректить нужно по имени домена:

redirect scheme https if { hdr(Host) -i www.mydomain.com } !{ ssl_fc }
Enter your comment. Wiki syntax is allowed:
 
  • linux_faq/haproxy_http_to_https_automatic_redirect.txt
  • Last modified: 2019/02/11 09:13
  • by 127.0.0.1