<div dir="ltr">Here's how you would do it:<div><br></div><div>First, run this command (substituting your example of `<a href="http://new.page.com">new.page.com</a>` for any other new domain):</div><div><br></div><div><font face="monospace, monospace">certbot certonly --webroot -w <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/usr/share/nginx/html -d <a href="http://new.page.com">new.page.com</a></span></font></div><div><br></div><div><b>Note that the "webroot" directory is the same for ALL sites here, because of these lines: <a href="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</a></b></div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Hope that makes sense.</div><div><br></div><div>Moshe</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 23, 2018 at 4:15 PM Nginx-Chris <<a href="mailto:nginx-forum@forum.nginx.org">nginx-forum@forum.nginx.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I mean how would the nginx config for <a href="http://new.page.com" rel="noreferrer" target="_blank">new.page.com</a> look like?<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,279794,279935#msg-279935" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,279794,279935#msg-279935</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>