Create a web page on Apache Virtual Host

By , . Latest revision .

Fix a site with an Apache Virtual Host. You get to configure a Named Apache Virtual Host and make a small web page that will be hosted by your own web server.

#Prerequisites

Du har jobbat igenom guiden “Install web pages with Apache Name-based Virtual Hosts”.

#Introduction

The files you create and use in this task should be saved in your course repo in the directory me/kmom01/vhost. They are used to report the task.

Create a file, log.txt, and place it in the directory above.

For introductions to HTML and CSS look at Mozilla Developer Networks introductions for Introduction to HTML and Learn to style HTML using CSS.

#Requirements

  1. Copy all files from the example/report folder to me/report. Enter the command you use in the log (log.txt).

  2. If you want to earn extra credits adapt me.html and about.html with both additional HTML and CSS.

  3. Create an Apache Virtual Host me.linux.se. Save a copy of the config file me.linux.se.conf in your course repo.

  4. Copy all files and directories from me/report to the webroot of me.linux.se/. Enter the command you use in the log (log.txt).

  5. Make sure you can access the site with your browser on your local development computer through port forwarding.

  6. Open a terminal in your VirtualBox, use lynx to open your newly created website. Enter the command you use in the log (log.txt).

  7. Take a screenshot of the terminal that shows when using lynx to access the site. Save it as dump.png. Save the image in .png format and use lower case letters in the file name.

  8. Publish your answers as follows.

# Ställ dig i kurskatalogen
dbwebb publish kmom01

Correct any errors that pop up and publish again. When it looks green you are done.

#Revision history

  • 2019-08-19: (A, lew) Uppdatering inför HT19.

Document source.

Category: webbprogrammering.