Setting up a Ubuntu droplet for a web server, I want to choose the right firewall options.
UFW has three “services” for Apache2. “Apache” “Apache Full” and “Apache Secure”
I can’t find documentation on how these services differ.
Can someone help me find out the difference between these services?
Many thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
they are defined in apache2-utils.ufw.profile
Hi, @joestroup
This really depends from your needs. There are three profiles available for Apache:
It is recommended that you enable the most restrictive profile that will still allow the traffic you’ve configured. Since we haven’t configured SSL for our server yet in this guide, we will only need to allow traffic on port 80:
sudo ufw allow 'Apache'
You can verify the change by typing:
sudo ufw status
The output will provide a list of allowed HTTP traffic:
As indicated by the output, the profile has been activated to allow access to the Apache web server.
You can find more information here:
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04
Hope that this helps! Regards, Alex