Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

How it works...

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content