Moshe Katz
May 23, 2018 09:30PM
Here's how you would do it:

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

certbot certonly --webroot -w /usr/share/nginx/html -d new.page.com

*Note that the "webroot" directory is the same for ALL sites here, because
of these
lines: https://gist.github.com/kohenkatz/08a74d757e0695f4ec3dc34c44ea4369#file-redirect-all-http-to-https-conf-L16-L22
<https://gist.github.com/kohenkatz/08a74d757e0695f4ec3dc34c44ea4369#file-redirect-all-http-to-https-conf-L16-L22>*

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.

Moshe


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

> I mean how would the nginx config for new.page.com look like?
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,279794,279935#msg-279935
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx only serves 1 App

Nginx-Chris May 15, 2018 04:35AM

Re: Nginx only serves 1 App

wickedhangover May 15, 2018 07:30AM

Re: Nginx only serves 1 App

Moshe Katz May 15, 2018 09:18AM

Re: Nginx only serves 1 App

Nginx-Chris May 15, 2018 04:32PM

Re: Nginx only serves 1 App

Moshe Katz May 15, 2018 11:46PM

Re: Nginx only serves 1 App

Nginx-Chris May 16, 2018 01:08AM

Re: Nginx only serves 1 App

Nginx-Chris May 16, 2018 01:12AM

Re: Nginx only serves 1 App

Nginx-Chris May 16, 2018 01:41AM

Re: Nginx only serves 1 App

Moshe Katz May 16, 2018 09:16AM

Re: Nginx only serves 1 App

Nginx-Chris May 23, 2018 04:14PM

Re: Nginx only serves 1 App

Nginx-Chris May 23, 2018 04:14PM

Re: Nginx only serves 1 App

Moshe Katz May 23, 2018 09:30PM

Re: Nginx only serves 1 App

Nginx-Chris May 23, 2018 11:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready