COP3832, Assignment 3
Due 10/5 at the start of class.
I will not be altering the assignment. This is it!
Hand in and upload copies of httpd.conf, srm.conf, and access.conf
You are to configure your server and get it running. Then do the following
-
Create three subdirectories of COP3832/data
-
In the include directory, create a file with some html code in it.
Do not create a complete html document, just a few headings will be enough.
Call the file include.html.
-
In the hw3 directory, create a file named ssi.shtml. Using
the following server side include command, include the file from the include
directory
<!--#include virtual="/include/include.html" -->
Copy the file to the links directory
cp ssi.shtml ../links
-
Copy the file hello.cgi from my student home page to your directory
cp ~tdowne01/COP3832/personal/hello.cgi .
Also copy it to the links directory
cp ~tdowne01/COP3832/personal/hello.cgi ../links
-
Create a link in the hw3 directory to your errors directory,
replace dlette07 with your user name.
ln -s /aul/homes/dlette07/COP3832/server/errors/ ownlink
Create a link in the hw3 directory to my personal directory
ln -s /aul/homes/tdowne01/COP3832/personal/ otherlink
-
Change to the links directory and create the same two links again,
replace delette07 with your user name.
cd ../links
ln -s /aul/homes/dlette07/COP3832/server/errors/ ownlink
ln -s /aul/homes/tdowne01/COP3832/personal/ otherlink
-
Create the following Aliases in srm.conf
-
An alias named /ssi/ to your hw3 directory
-
An alias named /simple/ to your hw3 directory
-
An alias named /all/ to your hw3 directory
-
An alias named /cgi/ to your hw3 directory
-
An alias named /errors/ to your COP3832/server/errors/ directory
-
In access.conf, use the Location directive to allow the following features
in certain directories
-
ssi: allow fancy indexing and server side includes
-
all: allow fancy indexing and all options
-
simple: allow simple indexing
-
cgi: allow fancy indexing and execution of CGI scripts
-
In access.conf, use the Directory directive to do the following for the
links directory
-
allow fancy indexing
-
follow symbolic links if the owners match
-
change the icon for .shtml files to a different one of your choice from the
/icons directory (/depot/http/icons/)
-
change the icon for .cgi files to a different one of your choice from the
/icons directory (/depot/http/icons/)
-
change the icon for directories to a different one of your choice from the
/icons directory (/depot/http/icons/)
-
In the errors directory, create html files for the following errors
-
403 Forbidden
-
404 Not Found
-
500 Internal Server Error
-
Change srm.conf so that the above error messages are displayed at the appropriate
times.
-
Create a 3832.html file in your data directory that will have the following
-
A link to a file that will create a 403 error
-
A link to a file that will create a 404 error
-
A link to
/~tdowne01/500.cgi
This link will generate a 500 error
-
A link to /simple/
-
A link to /ssi/
-
A link to /cgi/
-
A link to /all/
-
A link to /links/
Use the 3832.shtml to investigate what happens when you try to open each
file in each directory. Notice when ssi commands work, cgi works, links work.
Notice how the icons change in the /links/ directory. Notice whenn fancyindexing
works. Have fun.
Check my student server for an example of what the assignment looks like:
mongoose.aul.fiu.edu:1111