Course Home | Syllabus | Assignments | Schedule | Downloads | Submissions | [print]

IT 3100: Systems Design and Administration I

Web Server - Virtual Hosts (HTTP)

Due according to the class schedule.


In this assignment, you will configure a server to act as a web server for multiple web sites.

Throughout the semester this server must be functioning correctly.

Configure a system for use as a web server

Use the virtual machine you installed to function as a web server.

Install the apache2 package on the system.

Be sure that the DNS system is correct for this machine.

Configure the system to serve multiple web sites

Create at least three different names in DNS that resolve to the IP address of the new machine. The use of CNAME records is encouraged.

Configure the web server software to serve a different web site for each of the different names.

Create a unique web site for each of the virtual hosts.

None of these sites should use the default virtual host. (In other words, you should make sure that the default is enabled in sites-enabled, and that you have edited the file so that explicitly listens on your ip:port. In short, edit the default file <VirtualHost> line, so it has your ip and port 80.) To test if this is working correctly, when you visit the ip of your web host in a browser, it should NOT show you any of your new virtual hosts that you have created.

NOTE If you name your ServerName directive the same as what is in /etc/hosts, you will probably have unexpected behavior.

Configure the web sites

Each web site needs at least a home page. On the home page, each web site needs to have a key word that is present in the text, that is not present in any other virtual host’s home page.


Visit each of your sites by hostname and verify the correct files are returned in each case.

Use the log files to look for potential errors.

Submission File Format

The submission file is a UNIX text file, and must have this format, exactly!

The file must be named web_info.txt.

ip:    ip address of web server
site1: fully qualified domain name of first web site:unique word on first web site
site2: fully qualified domain name of second web site:unique word on second web site
site3: fully qualified domain name of third web site:unique word on third web site

For example, my file would look like this:


Submission and Passoff

Last Updated 08/07/2020