Hi all,
On lists.example.org I want to run Mailman3. Mailman3 works perfectly in a Docker Container on my Droplet.
So I wrote a VirtualHost like this:
<VirtualHost *:443>
ServerName lists.example.org
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/example.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.org/privkey.pem
ServerAdmin donald@trump.org
Alias /static /opt/mailman/web/static
Alias /favicon.ico /opt/mailman/web/static/hyperkitty/img/favicon.ico
ProxyPassMatch ^/static/ !
ProxyPass / http://172.19.199.3:8000/
ProxyPassReverse / http://172.19.199.3:8000/
<Directory />
Allow from all
Require all granted
</Directory>
<Directory /opt/mailman/web/static/hyperkitty/img/>
Allow from all
Require all granted
Options FollowSymLinks
</Directory>
<Directory /opt/mailman/web/static/>
Options FollowSymLinks
Allow from all
Require all granted
</Directory>
</VirtualHost>
When I access lists.example.org, nothing is being displayed. But I can perfectly establish a connection to lists.example.org on port 443. Now comes the weird part: example.org 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…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
It seems as if the SSL cert you have in the vhost is not for lists.example.org. So if you don’t actually have the SSL cert for lists.example.org 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 https://example.org pulls this vhost is unclear from the info you have up there.
Cheers
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.