Setting Up an Apache Web Server

Apache, or the Apache HTTP Server, is a free and open-source web server software. It is a widely used tool for delivering web content over the internet by acting as a bridge between web servers and users. Essentially, when someone visits a website, Apache is often the software that handles requests and sends the website’s files back to their browser.


Build a Personal Web Server with Apache

The purpose of this project is to install and configure an Apache HTTP Server on a Linux VM, and serve custom HTML sites.

Step 1: Create a Linux Virtual Machine

  1. Download a Linux ISO (server of desktop, your prefernece). For example, find Ubuntu ISO Downloads here.

  2. Create a VM, attach the ISO, and install the OS. Perform updates to prepare for Apache install.

Step 2: Install Apache on the Virtual Machine

  1. On the VM, run:

sudo apt install apache2
  1. Check the service:

sudo systemctl status apache2
  1. Find your VM’s IP (on local network):

ip a
  1. Then open your browser on the host machine and go to:

http://<vm-ip-address>
  • You should see the Apache2 default welcome page.


Resources