Adding a subdomain with its own content

This is a trivial question, I hope. What is the best practice to add a sub-domain to a domain?
I have all set up nicely. I want to add Is there a way I can have the two serve separate content?

I have and after running certbot-auot got and have the redirection in Good.

Repeating the process for, (which works as http) certbot-auto acted the same, same output etcetera, but there is no, and no redirection added to

Putting the virtual host for into and repeating the process ended up with redirection for but not

I end up with working but pointing at

My domain is:

I ran this command:


It produced this output:

Enhancement redirect was already set.

My web server is (include version):

$ apache2 -version
Server version: Apache/2.4.18 (Ubuntu)
Server built:   2019-10-08T13:31:25

The operating system my web server runs on is (include version):

$ cat /etc/issue
Ubuntu 16.04.6 LTS

My hosting provider, if applicable, is:


I can login to a root shell on my machine (yes or no, or I don’t know):


The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

certbot 1.0.0

1 Like

Please show the current config files.

1 Like

It was trivial.

I needed to look at the --domains argument for certbot-auto

Trivial indeed. The same certificate can serve > 1 domain.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.