Get the default configuration file apache2-utils.ufw.profile for Apache, optimized for Ubuntu 20.04 LTS (Focal Fossa). This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/ufw/applications.d/apache2-utils.ufw.profile.
For more configurations and setup guides, visit our related files section to further customize your system.
[Apache]
title=Web Server
description=Apache v2 is the next generation of the omnipresent Apache web server.
ports=80/tcp
[Apache Secure]
title=Web Server (HTTPS)
description=Apache v2 is the next generation of the omnipresent Apache web server.
ports=443/tcp
[Apache Full]
title=Web Server (HTTP,HTTPS)
description=Apache v2 is the next generation of the omnipresent Apache web server.
ports=80,443/tcp
Download the raw file with wget or curl
wget -O apache2-utils.ufw.profile.example https://exampleconfig.com/static/raw/apache/ubuntu20.04/etc/ufw/applications.d/apache2-utils.ufw.profile
curl https://exampleconfig.com/static/raw/apache/ubuntu20.04/etc/ufw/applications.d/apache2-utils.ufw.profile > apache2-utils.ufw.profile.example
Other config files you might find useful