I’m running a VPS (Debian 9) with Apache2 service running on it. I want to have a
mail.example.com direct traffic to
example.com to direct traffic to
/var/www/example. I have written and rewritten the virtual hosts conf many times and
mail.example.com always directs traffic to the wrong place on my machine.
Could it have something to do with certbot/letsencrypt? I know it changes apache settings. When I first made my SSL cert, I made a rule for
mail.example.com but “told” let’s encrypt it was located in the other location. Any help would be appreciated.
I will add specific information when I am off of work.