CNT4603 - 2019
Assignment 3
No journal due

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 http://127.0.0.1 (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 http://www.cs.fsu.edu, 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.) (You can determine YOURIPNUM with ip a.)

Once you finish, let me know and we will verify that it's working.




No journal is due for this assignment.