Reset_Smith's Blog
    • Posts
    • Server Management
      • Basic Auth with Apache
      • Enabling SSL
    • WordPress
      • Deploying a LAMP server Ubuntu 22.04
      • WordPress Migrations
      • Deploying a LAMP server Ubuntu 20.04
    • Ansible
      • Why Ansible
      • WordPress Ansible Deployment
    • Monitoring
      • Getting started
      • Node exporter
      • Blackbox exporter
    Hero Image
    Setting up password authentication with Apache

    This is referred to as Apache ‘Basic Auth’. Following these directions will add a username and password prompt to a website or specific webpage. Typically we use this to hide a ‘Dev’ website so it can still be accessible but not open to the public. Using htpasswd to generate users and passwords Install Dependencies Make sure you have Apache Extended Utilities installed sudo apt update sudo apt install apache2-utils Create first user with htpasswd sudo htpasswd -c /etc/apache2/htpasswd.

    October 12, 2021 Read
    Hero Image
    Enabling SSL with Apache

    Today this tutorial will walkthrough using Certbot to obtain a SSL certificate and then applying the certificate to your website with Apache. This tutorial assumes you have SSH access or another way to run terminal commands on a Debian based server with Apache already installed. For this particular example I ran these commands on a basic DigitalOcean Droplet running Ubuntu 20.04. Obtain certificate using Certbot We’ll be using the Cerbot app to request a SSL certificate from LetsEncrypt.

    September 14, 2021 Read
    Navigation
      Contact me:
      Reset_Smith@resettech.net
      Images provided by:
      • www.Freepik.com

      Toha Theme Logo Toha
      © 2021 Copyright.
      Powered by Hugo Logo