LJ Archive

Listing 1. httpd.conf File Example

# Ensure that these two tags are present.
LoadModule jserv_module       libexec/apache/mod_jserv.so
...
AddModule mod_jserv.c
...
# Servlet configuration files
# These go in global scope.
ServletBinary\
/usr/bin/jdk-1.1.6/i586/green_threads/java
ServletBinaryArgument\
  -Dbase.dir=/home/httpd/servlet-properties/
ServletClassPath\
  /usr/lib/jdk-1.1.6/lib/classes.zip
ServletClassPath\
  /usr/local/lib/jserv/servclasses.zip:\
  /usr/local/lib/jserv/jserv.zip
ServletClassPath\
  /usr/share/postgresql/postgresql.jar
ServletEnvironment LD_LIBRARY_PATH\
  /usr/lib/jdk-1.1.6/lib/i586/green_threads/
ServletEnvironment JAVA_COMPILER tya
ServletErrorLog /var/log/httpd/jserv_log
ServletProperties /usr/local/lib/jserv/servlet.properties
NameVirtualHost roger.dodger.org
<VirtualHost roger.dodger.org>
   ServerName roger.dodger.org
   ServerAdmin bruce@roger.dodger.org
   DocumentRoot /export/home/roger/html
   ScriptAlias /cgi-bin/ /export/roger/bin/
   ServletAlias /servlet /home/roger/servlet/
   ErrorLog /var/log/httpd/error_log
   TransferLog /var/log/httpd/access_log
</VirtualHost>
LJ Archive