Web Hosting
Description
The purpose of this assignment is to set up web hosting for a basic web application. Here is the criteria:
If not already installed, install
nginx,gunicorn,python3, andflaskusing the package manager.Copy the web application code somewhere appropriate. (code) somewhere appropriate.
Configure nginx to serve the application at root URL of your machine’s IP address on port 80. The nginx configuration for needs to be a reverse proxy to the Gunicorn process. On Ubuntu, the configuration files should be located in the
/etc/nginx/sites-availableand/etc/nginx/sites-enableddirectories. Note that the installation of nginx creates a default site at the root URL, so you may need to remove or replace the default site files.Do not make any
systemdor logging related files/configuration. We will do this in the next assignment. The only systemd command you need to worry about issystemctl restart nginxto restart nginx after changing the configuration files.
Note that you can test that the server is working with the curl program.
Turning in the Assignment
To submit your assignment, create a gzipped tar file named project5.tgz of a
DIRECTORY named project5 containing the following:
A file named
READMEthat contains a step-by-step description of the setup process. You can make this a shell script instead, if you want an automated setup process. Make sure to include the file paths of any files you created or modified. Note any steps you took to verify that the above criteria are correct.A copy of any configuration files you created or modified.
Then submit that file to the appropriate folder on D2L.
Grading Criteria
- Correct implementation of the specification