CERN Server Configuration

This section describes some of the details of configuring the CERN web server to work with Caucus.  It assumes that you have already installed your web server and are generally familiar with server configuration.  (Note: Screen Porch recommends against the use of the CERN web server.  This information is provided here purely for those who wish to, or have some need to, experiment with the CERN server.)

(Throughout this page, wherever you see /home/caucus, replace it with the actual path of the Caucus home directory.)

  1. Define CGI directories

    Find your httpd configuration file, typically httpd.conf.  Edit it, and add the lines:

       Exec  /sweb/*    /home/caucus/SWEB/*
       Exec  /reg/*     /home/caucus/REG/*
    

  2. Define special "/caucus" URLs

    In httpd.conf, add the line:

       Exec  /caucus/*  /home/caucus/SWEB/start.cgi/*
    

  3. Restrict Access with userids and passwords

    In httpd.conf, add the lines below:

       Protection PROT-SETUP-USERS {
          UserId       nobody
          GroupId      nogroup
          ServerId     caucus
          AuthType     Basic
          PasswdFile   /home/caucus/caucus_passwd
          GroupFile    /home/caucus/groups
          GET-Mask     users
       }
       Protect  /sweb/*     PROT-SETUP-USERS
    

    Restart your httpd server.

    Change the /home/caucus/SWEB/swebsock to be a shell script that invokes the swebsock program by its full pathname.  To do this, go to the directory /home/caucus/SWEB, and type:

        mv swebsock swebsock2
        chmod 4711  swebsock2
        echo "#!/bin/sh"  >swebsock
        echo "exec /home/caucus/SWEB/swebsock2" >>swebsock
        chmod  755  swebsock