MailCow, simple html in maindomain

Categories blog

Mailcow is installed on a subdomain. If you need a simple HTML page on the main domain, do this:

 create a conf file in data/conf/nginx with the following content:

server {
ssl_certificate /etc/ssl/mail/cert.pem;
ssl_certificate_key /etc/ssl/mail/key.pem;
index index.html;
client_max_body_size 0;
root /web;
include /etc/nginx/conf.d/listen_plain.active;
include /etc/nginx/conf.d/listen_ssl.active;
server_name visum.pt;

location ^~ /.well-known/acme-challenge/ {
allow all;
default_type “text/plain”;
}

location / {
root /web;
}
}

~Then add the index.html to data/web
~Add your domain to ADDITIONAL_SAN (https://mailcow.github.io/mailcow-dockerized-docs/firststeps-ssl/) to have proper SSL