Install Apache 2 on Ubuntu 20.04

Categories:

The webserver… Sure.
Let’s have it working in 2 minutes…

Install Apache 2

sudo apt install apache2

Check configuration

apache2ctl configtest

Let the traffic trough the firewall

sudo ufw allow in "Apache Full"

Enable some modules (here is an exmaple for mod_expires)

a2enmod expires

Restart it

sudo systemctl restart apache2


Leave a Reply

Your email address will not be published. Required fields are marked *