nginx.conf
is the first configuration file that nginx loads which then chains the default.conf
file which in turn loads our standard .location
and .upstream
files..location
and .upstream
files under /opt/nginx/include
./etc/nginx/operating/default.conf
with your own customised defaults.default.conf
you MUST include a ./well-known
location for lets-encrypt to work:nginx-conf
file.nginx.conf
it must include the following lines:nginx.conf
loads its configuration from the /etc/nginx/live/defaults.conf
file.default.conf
in /etc/nginx/operating/defaults.conf
operating
vs live
.live
directory.live
directory is symlinked to your /etc/nginx/operating
directory.live
directory is symlinked to the acquire
folder and Nginx-LE is placed into acquisition mode.acquire
path contains a single index.html
page 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.nginx
to start and then nginx-le
can then you can run the acquire
command to obtain a valid certificate.nginx
will not start if you don't have a valid certificate and it has been configured to start a HTTPS service.nginx-le
switches the live
symlink back to /etc/nginx/operating
and does a nginx
reload and your site is online.