![]() ![]() Now open the /var/www/host_example/html/content.html file in your favorite editor and copy/paste the following HTML: sudo chown -R $current_user:$current_user / var/www/host_example To serve multiple domains, you can use virtual hosts and create a domain directory inside the /var/www folder, as follows: sudo mkdir / var/www/host_exampleĬhange the ownership and file permissions of the directory using chown. Now check the firewall status by running: sudo ufw status Since we don't have SSL/TLS enabled for the server, we will allow UFW access on only port 80 as follows: sudo ufw allow 'Apache' ![]() Apache Secure: Enables secure server access via HTTPS by allowing traffic on port 443. ![]() Apache Full: Opens both ports 80 and 443 for unencrypted and secure communication.Apache: Only opens port 80 to enable unencrypted communication over the internet.Use the following command to list all Apache application profiles: sudo ufw app list ![]() The list of application profiles helps you to enable/disable Apache access. During installation, the service registers with the firewall with some application profiles. Step 3: Configure Firewall to Allow Apache Server AccessĪnother mandatory step in Apache configuration is enabling the UFW firewall in Linux to accept or allow traffic to access the server via default port 80. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |