CNT4603 - 2015 Fall
Assignment 2
Journals Due Tuesday, September 15, at the beginning of class.

Assignment: Create a website

Your objective is to set up a website on your Debian machine that is a clone of the Computer Science Department's current front web page (you DO NOT have to copy the whole website, it's huge.)

First, update your machine with apt-get update && apt-get upgrade. Then install nginx on your machine (the easy way to do this is to use apt-get install nginx, but feel free to use any other method you like), but please use the Debian repository — you definitely don't need to compile this from source.

You can test nginx locally with (there's a default webpage installed initially); you can help other students test theirs by using their ip number. Remember, firewalls on your machine may (or may not) exist that block access to port 80 and if such exist, you will have to remove any such blocks.

The next step is to copy over the department's webpage into the default website directory for nginx. Many tools exist for such copying; perhaps the simplest is wget, but feel free to use any one that you are comfortable with. The configuration for nginx is found in /etc/nginx/nginx.conf; your default site is in /etc/nginx/sites-enabled/default.

I think the easiest use of wget to copy just the main page and its constituent bits would be something like cd /var/www/html && wget -nH -p -E -H -k -K, but feel free to use whatever mechanism you prefer.

Make sure that your website is available from the top level as http://192.168.26.YOURIPNUM (nginx is actually flexible and it's possible to do this in many ways, but I recommend using the very simplest: just put it in the default website directory /var/www/html, as suggested above.)

We will visit your copy of the department's website next Tuesday, so please make sure that your machine is up and that the website is available prior to class.

A journal is due for this assignment. Make sure that you document in your journal all of the steps that you went through. Please turn in a printed copy of this assignment at the beginning of class on Tuesday, September 15.