![]() You will get back a few addresses separated by spaces. Try typing this at your server's command prompt: hostname -I If you do not know your server's IP address, you can get it a few different ways from the command line. ![]() You can access the default Apache landing page to confirm that the software is running properly through your IP address. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset:Īctive: active (running) since Mon 16:02:29 EDT 11min ago ![]() WWW (v6) ALLOW Anywhere (v6) Checking your Web ServerĬheck with the systemd init system to make sure the service is running by typing: sudo systemctl status apache2 You can verify the change by typing: sudo ufw status 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 'WWW' It is recommended that you enable the most restrictive profile that will still allow the traffic you've configured. WWW Secure: This profile opens only port 443 (TLS/SSL encrypted traffic) WWW Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic) WWW Cache: This profile opens only port 8080 (sometimes used for caching and web proxies) WWW: This profile opens only port 80 (normal, unencrypted web traffic List the ufw application profiles by typing: sudo ufw app list The following additional packages will be installed:Īpache2-bin apache2-data apache2-utils libapr1 libaprutil1 Adjusting the Firewallĭuring installation, Apache registers itself with UFW to provide a few application profiles that can be used to enable or disable access to Apache through the firewall. Then, install the apache2 package: sudo apt install apache2 Let's begin by updating the local package index to reflect the latest upstream changes: sudo apt update How To Install the Apache Web Server on Debian 10
0 Comments
Leave a Reply. |