Create A Website

Assignment: Create a website




Your objective is to set up a website on your host 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 pacman -Syu. Then install nginx on your machine with pacman -S nginx.

We will talk about configuring nginx in class, but the main idea is that you will need to create a new subdirectory, mkdir /var/html, then change the ownership to your ordinary user chown user:user /var/html.

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; you should change your default site to /var/html.

An easy use of wget is to copy just the main page and its constituent bits would be something like cd /var/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/html, as suggested above.) (You can determine YOURIPNUM with ip a.)

Now use your guest QEMU image's firefox to visit that website http://192.168.26.YOURIPNUM; once that works, let me know we will verify your work.