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.
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
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
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:
ip: 184.108.40.206 site1: jane.dsutux.us:porter site2: tarzan.dsutux.us:greystoke site3: korak.dsutux.us:killer
Submission and Passoff
Use the Submisions link at the top of the page to submit your text file to the
Check back at the submissions site for feedback on the completeness of your work. Fix anything that’s wrong. Repeat.
The sites will be visited and examined for the unique words listed in the submission file. The configuration files will be examined as well.
The DNS system will also be checked for correct forward translations.
Last Updated 08/07/2020