Right now, Stalwart lets you setup your own web applications to be served at specific paths. This is convenient and removes the requirement for something like Nginx or Caddy.
But, if you have a cluster and want each node to have a different website; or if you have to have multiple websites on the same server this solution does not work. There is no option to take the Host header into consideration.
An easy solution would be to add a Host regex option to the Web Application object, which matches against a request’s Host header. This would allow developers to setup multiple sites on one server and allow clusters to have unique sites per node.