nginx.confis the first configuration file that nginx loads which then chains the
default.conffile which in turn loads our standard
/etc/nginx/operating/default.confwith your own customised defaults.
default.confyou MUST include a
./well-knownlocation for lets-encrypt to work:
nginx.confit must include the following lines:
nginx.confloads its configuration from the
livedirectory is symlinked to your
livedirectory is symlinked to the
acquirefolder and Nginx-LE is placed into acquisition mode.
acquirepath contains a single
index.htmlpage informing you that a certificate needs to be acquired. In this mode no other content will be served and only requests from certbot will be processed.
nginxto start and then
nginx-lecan then you can run the
acquirecommand to obtain a valid certificate.
nginxwill not start if you don't have a valid certificate and it has been configured to start a HTTPS service.
livesymlink back to
/etc/nginx/operatingand does a
nginxreload and your site is online.