Loading topic
Host header are, and that Nginx is installed from distribution packages and running under systemd. You6 min read/etc/nginx with sudo, and that Nginx from your distribution's packages is running under systemd. It also assumes you know what a TCP port is and that you have seen a basic server block. The listen directive is the first thing Nginx checks when a re5 min read/etc/nginx with sudo and that you know what the HTTP Host header is. It also assumes Nginx runs from distribution packages under systemd. The chapter covers what server_name accepts, the order Nginx uses when several names could match, and the mist6 min readlisten and server_name do. The commands use the Debian and Ubuntu layout, where site files liv7 min readHost header. It covers the selection algorithm itself. Later chapters cover testing, default servers and redirects in more detail.6 min readHost header is and that you have curl installed.6 min read/etc/nginx, that you know a request carries a Host header, and that you already have at least one working server block. It covers what Nginx does when no server_name matches, and how to take control of that case with an explicit defau5 min read/etc/nginx, reload the service with systemd, and read basic HTTP status codes. You should already have at least two server blocks working from earlier chapters. The goal is to give each site its own access and error logs, so that one site6 min readlisten and server_name select a block, and you can validate and reload Nginx with nginx -t and systemctl reload nginx. It covers one task: sending every request for an alternate host name to a single canonical name.6 min readnginx -t and a reload, and read the Host header in an HTTP request. It also assumes you know that an applic5 min readnginx -t, and test with curl. You should also know that a TLS certificate is tied to one or more host names, and that you can obtain certificates (for example from Let's Encrypt) for each of your domains. The chapter explain7 min read/etc/nginx with sudo. It also assumes you have two or more server blocks working, and that you know the nginx -t and reload workflow from earlier chapters. After many sites accumulate, the same lines show up in every server block: TLS settings, proxy5 min readnginx -t, and use curl with a Host header. You should also know how a request is matched to a server block by listen and server_name, and how file ownership and permissions work on Linux. The goal is a repeatable way to find out wh7 min read