Ubuntu Apache Logs

Creating Ubuntu Apache Logs

  • Update with sudo apt-get update

  • Install apache2 with sudo apt-get install apache2

  • Start apache2 with sudo systemctl start apache2

  • Use ip a and take note of your ip address

  • Go to your IP address in your browser and you should see the default apache page

Deliverable 1: Apache Default Login Page

  • remove the default index.html and make the following:

  • Create page1.html

  • Create page2.html

Browse Through Your Pages

Install Curl

  • sudo apt-get install curl

  • Access your webpage with curl

Deliverable 2: basic_access_intruder.bash

Deliverable 3: page2 log script

  • Apache logs will be under /var/log/apache2

  • Create a script that displays only IP address and page

Deliverable 4: Create a function that is called pageCount. This function will return how many times each page was accessed.

Scripts:

Last updated