CGS4825 Assignment 1
Due Monday, 9/18 at 11:59 pm.
To hand in the assignment, zip your cgs4825 directory and upload
it via the web:
Submitting
homework on-line via the Web.
-
Please use the following command to compress your cgs4825 folder.
Change to your root directory on ocelot and issue the command
zip -r username cgs4825 -x \*.jar \*.zip \*.war
Replacing username with your user name.
-
If you have any other archived files in your directory, like .rar, or .ZIP,
or .WAR, please remove them before zipping.
-
Check the size of the ZIP file, it should be less than 1 MB. If it is not,
then you probably have another ZIP file stored in the ZIP archive. Delete
it and re-zip.
-
Use my uploading program from ocelot to upload the file.
~downeyt/cs/public/webftp/webftp.pl
-
Upload the file as binary.
Be sure that all your files and subdirectories are included in the zip
file.
After uploading, do not modify your files on ocelot until after your assignment
has been graded.
Configure the Tomcat server
-
Create and validate your webapps folder on ocelot and request your student
host.
-
Create a file named
cgs4825.jsp
in the document root of your
Tomcat server. Add all the codes for a basic web page, including the DOCTYPE
and meta tags.
-
Validate the
cgs4825.jsp
page.
-
When a directory is requested from the web server, the server will look for
a default page to display from the directory. Typically, this page is named
index.html. Configure your Tomcat server so that the default page is named
cgs4825.jsp
.
-
Create a subdirectory named
errors
in the document root of the
Tomcat server.
-
When a restricted page or a page that does not exist is requested from the
Tomcat server, a reponse code of 404 is returned to the browser along with
a default page that describes the error. Configure the Tomcat server so that
your own custom error page is returned for a 404 error. Place your custom
page in the
errors
directory.
-
Test that your error page works by creating two hypertext links in the
cgs4825.jsp
page
-
Create a hypertext link to a file that does not exist.
-
Create a hypertext link to a file that the server cannot read. You may create
a new file in the docment root and change its permissions appropriately.
-
Access the Tomcat server by using the student host that I send you:
http://student99.cgs4825.cs.fiu.edu:8008/
Configure the Apache web server.
-
Request the port number for your Apache server.
-
Set up your Apache server on ocelot.
-
Change the server name from
ocelot.aul.fiu.edu
to your student
host: student99.cgs8425.cs.fiu.edu
-
Create a file named
cgs4825.html
in the document root of your
Apache server. Add all the codes for a basic web page, including the DOCTYPE
and meta tags.
-
Validate the
cgs4825.html
page.
-
When a directory is requested from the web server, the server will look for
a default page to display from the directory. Typically, this page is named
index.html. Configure your Apache server so that the default page is named
cgs4825.html
.
-
Create a directory named
errors
in your docRoot
directory.
-
When a page that does not exist is requested from the Apache server, a reponse
code of 404 is returned to the browser along with a default page that describes
the error. Configure the Apache server so that your own custom error page
is returned for a 404 error. Place your custom page in the
errors
directory.
-
When a restricted page is requested from the Apache server, a reponse code
of 403 is returned to the browser along with a default page that describes
the error. Configure the Apache server so that your own custom error page
is returned for a 403 error. Place your custom page in the
errors
directory.
-
Test that your error pages work by creating two hypertext links in the
cgs4825.html
page
-
Create a hypertext link to a file that does not exist.
-
Create a hypertext link to a file that the server cannot read. You may create
a new file in the docment root and change its permissions appropriately.
-
Access your Apache server using the port that you requested and your student
host number:
http://student99.cgs4825.cs.fiu.edu:99999/
Add links to each page to the other server.
-
Add a hypertext link from
cgs4825.html
to the Tomcat server
root directory.
-
Add a hypertext link from
cgs4825.jsp
to the Apache server root
directory.