For the complete documentation index, see llms.txt. This page is also available as Markdown.

Apache Configuration Guide

This guide walks you through setting up an Apache web server on Ubuntu 22.04 with:

  • A reverse proxy configuration where your website.com/hash points to hash.yourwebsite.com

  • HTTPS support using Let’s Encrypt via Certbot


Prerequisites

  • A server running Ubuntu 22.04

  • A registered domain name (e.g., yourwebsite.com )

  • DNS A record pointing yourwebsite.com to your server’s IP


Step 1: Install Apache Web Server

sudo apt update
sudo apt install apache2 -y

Step 2: Enable Required Apache Modules

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod headers
sudo a2enmod rewrite

Restart Apache to apply changes:


Step 3: Configure Apache Virtual Host for site.com

Replace yourwebsite.com below with your actual domain

Create a new site configuration file:

Paste the following content:

Enable the new site and disable the default:


Steps 4, 5, and 6 are only necessary if you do not have a signed certificate for your web server already

Step 4: Install Certbot and Apache Plugin


Step 5: Obtain SSL Certificate with Certbot

Replace yourwebsite.com below with your actual domain

Certbot will:

  • Automatically configure HTTPS in Apache

  • Enable HTTP to HTTPS redirection

  • Reload Apache automatically


Step 6: (Optional) Test Auto-Renewal

Verify Certbot renewal service:

Simulate a dry run renewal:


Step 7: Verify Setup

Test the proxy by visiting:

It should forward the request to:


Conclusion

You now have:

  • Apache running on Ubuntu 22.04

  • HTTPS enabled via Let’s Encrypt

  • A reverse proxy from yourwebsite.com/hash to hash.yourwebsite.com


If you have any questions or feedback, please open a request on our Helpdesk.

Last updated

Was this helpful?