MailCow, simple html in maindomain

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 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