CGS4825 Assignment 1
Due 1/30 at 9 pm
To hand in the assignment, zip your cgs4825 directory and upload it. Be sure
to include all files and subdirctories of cgs4825.
Configure the Apache web server.
-
Request the port number for your Apache server.
-
Set up your Apache server on ocelot.
-
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:
http://ocelot.aul.fiu.edu:99999/
Configure the Tomcat server
-
Create 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:8080/
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.