E-mail: dgerman@indiana.edu
Telephone: 855-2510
Office: Franklin Hall M005
Initial server setupThis course is mostly oriented towards providing functionality (transactions) rather than just static hierarchies of documents although we will discuss those as well.
CGI and Perl (server side) programming
Client side (Java and Javascript) programming
Writing and understanding servers and clients
Web security
Web site design considerations
Team projects
Programming will be present throughout the course since we will want to build an understanding of how things work on the web so that we can program into it the desired behaviour. At the same time programs are easier to grade.
mkdir apache
cd apache
cp /u/dgerman/apache_1.3.1-sparc-sun-solaris-26.tar.gz apache.tar.gz
You would otherwise get it from http://www.apache.org
For the next sequence of commands explanations will be provided in the labs and lecture.
gunzip apache.tar.gz
tar xvf apache.tar
cd
mkdir httpd
cd httpd
cp -R ../apache/apache_1.3.1/* .
mv src/httpd-solaris26 httpd
cd conf
cp httpd.conf-dist httpd.conf
vi httpd.conf
and make the following changes:
ServerRoot /u/dgerman/httpd
Port 19800
You need to use your own username and the port assigned to you. Ports will be distributed in the lab and will be posted on the course web page.
Also add a line like this
LockFile /tmp/apache.lockfile.your_username
at the end of httpd.conf
cp srm.conf-dist srm.conf
vi srm.conf
and make the following changes:
DocumentRoot /u/dgerman/httpd/htdocs
ScriptAlias /cgi-bin/ /u/dgerman/httpd/cgi-bin/
cp access.conf-dist access.conf
vi access.conf
and make the following changes
<Directory /u/dgerman/httpd/htdocs>
<Directory /u/dgerman/httpd/cgi-bin>
cd ..
Try http://tucotuco:19800 now.
./httpd -d .
Try http://tucotuco:19800 again now.
cd logs
kill -HUP `cat httpd.pid`
cd logs
kill `cat httpd.pid`
/u/dgerman/httpd/htdocs/index.html
)
#!/usr/bin/perl
print qq{
Welcome to the course.
};
and place it in /u/dgerman/httpd/cgi-bin/hello
Make it executable and try http://tucotuco:19800/cgi-bin/hello now.
Change the hello script to send back a larger HTML document.
Hello.java
:
class Hello { public static void main (String[] args) { System.out.println("Hello, world."); } }
Hello.java
. Due date will be announced here shortly.