Nginx only serves 1 App

Moshe Katz moshe at
Thu May 24 01:28:46 UTC 2018

Here's how you would do it:

First, run this command (substituting your example of `` for
any other new domain):

certbot certonly --webroot -w /usr/share/nginx/html -d

*Note that the "webroot" directory is the same for ALL sites here, because
of these

After certbot has run successfully, copy the configuration in one of the
other per-site files (right now "cloud.conf" and "chat.conf") and modify it
as needed.

The reason this works is that the configuration section I linked to above
sends all certbot verification requests to the same directory no matter
what site they are destined for.

Hope that makes sense.


On Wed, May 23, 2018 at 4:15 PM Nginx-Chris <nginx-forum at>

> I mean how would the nginx config for look like?
> Posted at Nginx Forum:
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list