| CS290I - Scalable Internet Services and Systems | |
|
Thorsten von Eicken - UCSB - Winter 2002 |
|
# Create the "static Web" directory and servlets
dir
cd
mkdir www servlets
# Untar the skeleton of apache configuration
tar xvf /cs290i/Apache.UserConf.tar
# Edit apache/apachectl
Change the MYROOT variable
# Edit httpd.conf (search for CS290I_CHANGEME):
# Edit jserv.conf (search for CS290I_CHANGEME):
# Edit jserv.properties (search for CS290I_CHANGEME):
by the following two:
# Edit zone.properties (search for CS290I_CHANGEME):
# Test your set-up
# Copy the examples in /cs290i/apache/servlets/
to your servlets directory (the one defined in repository)
cp /cs290i/apache/servlets/* /home/USER/servlets/
# Start the apache server
apache/apachectl start
# Check the error log
cat apache/logs/error_log
# Copy any html file into your document root. Try if
static pages work.
echo "Hi MOM!" >/home/USER/www/my_file.html
point your browser at http://MACHINE:PORT/myfile.html
# Try the Hello servlet
http://MACHINE:PORT/servlets/Hello
# Try the WebMacro HelloWorld servlet
http://MACHINE:PORT/servlets/HelloWorld