Netgate SG-1000 microFirewall

Author Topic: Load Balancer and apache virtual hosts  (Read 146 times)

0 Members and 1 Guest are viewing this topic.

Offline eiskaltereistee

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Load Balancer and apache virtual hosts
« on: December 10, 2017, 02:38:13 pm »
Hi all,

I have an problem with my pfSense load balancer.

There are two virtual hosts on my centos machines:
<VirtualHost *:443> and <VirtualHost _myDomain_:443>

In pfSense I created an virtual server, pools and one Monitor.

In the Monitor I have setting up "HTTPS" with _myDomain_ as Host.

The Problem is, that the second virtual host has no effect. I think the reason is, because no "host" are sended to the apache (I checked it via access_log).

Any Idea, what can goes wrong?

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21619
  • Karma: +1485/-26
    • View Profile
Re: Load Balancer and apache virtual hosts
« Reply #1 on: December 14, 2017, 01:02:35 pm »
For https checks with host to work, it requires SNI. The load balancer is very, very basic and cannot do that.

HAProxy is only recently gaining that ability. I'm not sure if it's in the haproxy package yet, but it might be there, or in the haproxy-devel package.

Check the cache/proxy board here under packages.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!