How to route hosts to different backends on Snapt Aria
  • 28 Dec 2021
  • 1 Minute to read
  • Dark

How to route hosts to different backends on Snapt Aria

  • Dark

This guide will explain how to use the Snapt Aria Load Balancer to send different hostnames (host headers) to different backends (servers).

This is done using the ACL system in Snapt Aria, a frontend and at least two backends. It's commonly called host-based routing.

In our example, we will be sending to a set of servers, and to a single server. This will mean a frontend to listen on port 80, and two backends with servers in them.

Creating the Backends

The first step is to add your two (or more) Backends under Backend Management. These will be where we will send traffic based on the ACLs. You can direct traffic based on the host header from a frontend to a backend. As discussed for us this is Production ( and Development (

Remember when adding your frontends and backends that they must all be in HTTP mode in order to redirect. We have the following configuration:

Production: ,


Creating the ACL


Next up we are going to create the ACL object to match "". We only need that, as we will use Production as a "Default Backend".

Go to Balancer -> ACL Management and Add a new ACL, ours will be called "Dev" and set Template to None.


Choose "hdr(host)" as the Match Criterion, with a Match Operator of Plain. Then set the value to "". This is saying to look for in the Host portion of the header.


Creating the Frontend

Now add a frontend under Frontend Management. As you can see in our Frontend we have set Production as the default backend and set it to HTTP mode.


Save this and then click the Attach ACL option on Frontend Management next to your new Frontend.

Attach an ACL

Now we want to tell it to use the backend Development if the ACL "Dev" is true. Save this and you are all done!