December 2018
Beginner
826 pages
22h 54m
English
The following is a BIG SUPER WARNING:
The certificates used here are for example only, hence the name "snake oil". They should NEVER be used in production, by anyone, even for a joke. You should only use legitimate certificates for any servers you set up (outside of testing and development, which shouldn't be public facing anyway).
Now that that's out of the way, let's look at what we've got here:
server {listen 443 ssl;listen [::]:80;include snippets/snakeoil.conf;root /var/www/fenchurch;index index.html;server_name 127.0.0.1;location / {try_files $uri $uri/ =404;}}
We used a couple of sed commands to change this file, but we could have just copied the contents into the file instead if we wanted.
We changed the listen ...