Linux-101/Linux-201/Lab-Sheet.md

1.2 KiB

Linux 201: Web Server Setup

Introduction

  • Goals
    • Setup a basic web server to serve static files
  • Non-goals - links to useful tutorials will be provided at the end of this lab sheet
    • Setting up HTTPS - This requires a domain name

Things to mention in the slide deck

  • Apache vs Nginx
    • Thread-based vs event-based servers

Basic Security

Installing a Web Server

  • systemd services
    • Nginx is a service
  • Installing Nginx
    • sudo apt install nginx

Configuration

  • /etc/nginx/nginx.conf
  • /etc/nginx/sites-available/*
  • /etc/nginx/sites-enabled/*

References and Further Reading