[system] / trunk / webwork-modperl / conf / httpd-wwmp.conf.dist Repository:
ViewVC logotype

View of /trunk/webwork-modperl/conf/httpd-wwmp.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1703 - (download) (annotate)
Mon Jan 5 01:02:41 2004 UTC (9 years, 5 months ago) by sh002i
File size: 4662 byte(s)
removed lingering references to "webwork-modperl", since we're calling
this product "webwork2" now. soon we should change the name of the CVS
module to "webwork2" as well.

    1 ################################################################################
    2 # WeBWorK Online Homework Delivery System
    3 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
    4 # $CVSHeader: webwork-modperl/conf/httpd-wwmp.conf.dist,v 1.12 2003/12/28 22:33:33 gage Exp $
    5 #
    6 # This program is free software; you can redistribute it and/or modify it under
    7 # the terms of either: (a) the GNU General Public License as published by the
    8 # Free Software Foundation; either version 2, or (at your option) any later
    9 # version, or (b) the "Artistic License" which comes with this package.
   10 #
   11 # This program is distributed in the hope that it will be useful, but WITHOUT
   12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   13 # FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
   14 # Artistic License for more details.
   15 ################################################################################
   16 
   17 # The best way to turn this into a working webwork server config file is to do
   18 # a global find/replace on the following strings:
   19 # !WEBWORK_ROOT! -> the root of your personal webwork2 tree
   20 # !WEBWORK_USER! -> your user name
   21 # !WEBWORK_PORT! -> the port on which you want to run this server
   22 #                   (please use 10000 + your UID)
   23 # !PG_ROOT!      -> the root of your personal pg tree
   24 #   !COURSES_ROOT! -> the root of courses tree
   25 #
   26 # After those find/replace operations, you should edit the access control
   27 # statements at the bottom of this file.
   28 
   29 Include !WEBWORK_ROOT!/conf/httpd-wwmp-header.conf
   30 
   31 Port !WEBWORK_PORT!
   32 User !WEBWORK_USER!
   33 Group !WEBWORK_USER!
   34 
   35 ServerAdmin !WEBWORK_USER!@localhost
   36 
   37 LockFile !WEBWORK_ROOT!/logs/httpd.lock
   38 PidFile !WEBWORK_ROOT!/logs/httpd.pid
   39 ErrorLog !WEBWORK_ROOT!/logs/error.log
   40 
   41 # On systems that use it, ScoreBoardFile must be different for different
   42 # invocations of Apache.  webwork-dev doens't appear to be one of those
   43 # systems.
   44 #ScoreBoardFile /var/run/httpd.scoreboard
   45 
   46 PerlFreshRestart On
   47 <Location /webwork2>
   48     SetHandler perl-script
   49     PerlHandler Apache::WeBWorK
   50 
   51     PerlSetVar webwork_root !WEBWORK_ROOT!
   52     PerlSetVar pg_root !PG_ROOT!
   53     <Perl>
   54   use lib '!WEBWORK_ROOT!/lib';
   55   use lib '!PG_ROOT!/lib';
   56     </Perl>
   57 </Location>
   58 
   59 # We're limiting the number of children because we'll be running a lot and
   60 # don't want to bog the development box down.
   61 StartServers 2
   62 MinSpareServers 2
   63 MaxSpareServers 2
   64 MaxClients 150
   65 # How "old" a child is allowed to get.  0 for unlimited requests
   66 # Pick a low number -- you're bound to screw something up, right?
   67 MaxRequestsPerChild 100
   68 
   69 # This DocumentRoot doesn't actually make a lot of sense.  In a
   70 # WeBWorK mod_perl system, there is no static document root, but the
   71 
   72 # DocumentRoot does have to exist, and not have a subdirectory
   73 # named "webwork2".  It suffices.
   74 
   75 # If no document root is defined by the webserver, you can uncomment the line below
   76 
   77 # DocumentRoot "!WEBWORK_ROOT!/htdocs"
   78 
   79 # These aliases are important.
   80 # The segment !COURSES_ROOT!  should be replaced by the full path reference
   81 # to the location where your courses are stored.
   82 # The AliasMatch directive directs to files stored in the html directory of each course.
   83 AliasMatch ^/webwork2_files/courses/([^/]*)/(.*) !COURSES_ROOT!/$1/html/$2
   84 
   85 # The alias directive redirects to the toplevel material in the global webwork2/htdocs directory
   86 Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/
   87 
   88 # This sets the permissions on the toplevel webwork2/htdocs directory
   89 # This should match the DocumentRoot
   90 <Directory "!WEBWORK_ROOT!/htdocs">
   91     Options Indexes FollowSymLinks MultiViews
   92     AllowOverride None
   93     Order allow,deny
   94     Allow from all
   95 </Directory>
   96 
   97 # Possible forms of access limitation (edit to taste)
   98 
   99 # The developer maintains a personal htpasswd file
  100 #<Location />
  101 # AuthType Basic
  102 # AuthName "!WEBWORK_USER!'s WeBWorK development system"
  103 # AuthUserFile !WEBWORK_ROOT!/conf/htpasswd
  104 # Require valid-user
  105 #</Location>
  106 
  107 # There is a site-wide htpasswd file somewhere, with all developers in it
  108 #<Location />
  109 # AuthType Basic
  110 # AuthName "!WEBWORK_USER!'s WeBWorK development system"
  111 # AuthUserFile /path/to/site/htpasswd/file
  112 # Require valid-user
  113 #</Location>
  114 
  115 # You have mod_pam_auth and would like to authenticate against your /etc/passwd
  116 # file.  (NOTE: It is a good idea to use Digest authentication instead of Basic,
  117 # even though this limits your choice of browsers, because of the heightened
  118 # sensitivity of normal system passwords.)
  119 #<Location />
  120 # AuthType Digest
  121 # AuthName "!WEBWORK_USER!'s WeBWorK development system"
  122 # AuthPAM_Enabled on
  123 # Require valid-user
  124 ##  Require group wwdev
  125 #</Location>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9