I followed the instructions here: https://www.virtualmin.com/documentation/system/varnish but instead of using Varnish, I am using HAproxy to divert traffic either to my Virtualmin sites (Apache port 8080) or a docker container.
But for some reason, none of my virtualmin sites work (the Docker site works fine).
I have also played with the HAproxy config, switching the default_backend from loading my apache sites, to the docker site - it works for the docker site but not apache sites so the 'default_backend' definitely works (I commented out all other lines).
Here is my HAproxy config:
# to have these messages end up in /var/log/haproxy.log you will
# need to:
# 1) configure syslog to accept network log events. This is done
# by adding the '-r' option to the SYSLOGD_OPTIONS in
# 2) configure local2 events to go to the /var/log/haproxy.log
# file. A line like the following can be added to
# local2.* /var/log/haproxy.log
log 127.0.0.1 local2
# chroot /var/lib/haproxy
# turn on stats unix socket
stats socket /var/lib/haproxy/stats
option forwardfor except 127.0.0.0/8
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
# Define hosts
acl host_discourse hdr(host) -i my_discourse_site.com
# figure out which one to use
use_backend discourse_docker if host_discourse
server server1 127.0.0.1:8080 cookie A check
server server2 127.0.0.1:8888 cookie A check
All I get for my virtualmin sites is a blank page with:
Index of /
[ICO] Name Last modified Size Description
Are there any known problems where Virtualmin sites stop working when the Apache port is changed? Have I missed anything? Do you have any other advice which I could try?