The objective of this lab will be to download and configure the frontend for our application. You will first need to download the code of the frontend from GitHub. After that, you will unpack it, move it to the correct directory, and configure the proper SELinux context for the newly downloaded files, so that they can be properly accessed from the outside world without any problems. This is a common security practice with the Apache web server. If this is not done, the files can become inaccessible, and a portion of your site will be non-functional.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Download the Code
Download the compressed files from GitHub (URL: https://github.com/ErminLA/HardeningApache/archive/master.zip).
Unpack the compressed files.
- Move and Rename the Files
Move the unpacked file
index.html
to the web server/var/www/html
.Move and rename the unpacked file
Linux Full Logo-01.png
toLA_Logo.png
.
- Configure SELinux
Configure and apply SELinux Context for the
index.html
file.Configure and apply SELinux Context for the
.png
file.
- Test the Application Frontend
Test if the application frontend works by opening a private or incognito window in your web browser and using the provided server instance public IP address
http://www.<Server_Public_IP>
.