- A site in nginx is a
serverblock; the request goes to the block on the same port whoseserver_namematches theHostheader. - An unknown name goes to the default server, the block with
default_server. - A link in
sites-enabledenables a site; the running nginx reads it afternginx -tandreload. - A file's path is the chosen block's
rootplus the URI; nginx writes a missing path toerror.logtogether with the block. - The docs opened the portal because the docs block was not in
sites-enabled: requests with its name went to the default server.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson