Subdomain in Apache2 VirtualHost is being ignored

Posted February 7, 2019 1.7k views
ApacheDNSUbuntu 16.04

Hi all,

On I want to run Mailman3. Mailman3 works perfectly in a Docker Container on my Droplet.

So I wrote a VirtualHost like this:

<VirtualHost *:443> 

    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/
    SSLCertificateKeyFile /etc/letsencrypt/live/
    Alias /static /opt/mailman/web/static
    Alias /favicon.ico /opt/mailman/web/static/hyperkitty/img/favicon.ico
    ProxyPassMatch ^/static/ !
    ProxyPass /
    ProxyPassReverse /

    <Directory />
    Allow from all
    Require all granted

    <Directory /opt/mailman/web/static/hyperkitty/img/>
    Allow from all
    Require all granted
    Options FollowSymLinks

    <Directory /opt/mailman/web/static/>
    Options FollowSymLinks
    Allow from all
    Require all granted


When I access, nothing is being displayed. But I can perfectly establish a connection to on port 443.
Now comes the weird part: displays the mailing list. So somehow the subdomain lists is being ignored.

This seems like a simple problem but I have found so many misleading tutorials..

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

It seems as if the SSL cert you have in the vhost is not for So if you don’t actually have the SSL cert for in the vhost block, it’ll translate to going to https://IP/ instead and that would just go to the first virtualhost that apache has loaded at runtime.

Now as to why pulls this vhost is unclear from the info you have up there.


Thanks, I got it working!