Parent Directory
|
Revision Log
Revision 1703 - (view) (download)
| 1 : | sh002i | 1663 | ################################################################################ |
| 2 : | # WeBWorK Online Homework Delivery System | ||
| 3 : | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ | ||
| 4 : | sh002i | 1703 | # $CVSHeader: webwork-modperl/conf/httpd-wwmp.conf.dist,v 1.12 2003/12/28 22:33:33 gage Exp $ |
| 5 : | sh002i | 1663 | # |
| 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 : | sh002i | 655 | # 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 : | sh002i | 1703 | # !WEBWORK_ROOT! -> the root of your personal webwork2 tree |
| 20 : | sh002i | 655 | # !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 : | gage | 1692 | # !PG_ROOT! -> the root of your personal pg tree |
| 24 : | # !COURSES_ROOT! -> the root of courses tree | ||
| 25 : | sh002i | 1644 | # |
| 26 : | malsyned | 1241 | # After those find/replace operations, you should edit the access control |
| 27 : | # statements at the bottom of this file. | ||
| 28 : | |||
| 29 : | sh002i | 1644 | Include !WEBWORK_ROOT!/conf/httpd-wwmp-header.conf |
| 30 : | sh002i | 655 | |
| 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 : | sh002i | 1200 | ErrorLog !WEBWORK_ROOT!/logs/error.log |
| 40 : | sh002i | 655 | |
| 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 : | malsyned | 1028 | <Location /webwork2> |
| 48 : | sh002i | 655 | SetHandler perl-script |
| 49 : | PerlHandler Apache::WeBWorK | ||
| 50 : | |||
| 51 : | PerlSetVar webwork_root !WEBWORK_ROOT! | ||
| 52 : | sh002i | 1051 | PerlSetVar pg_root !PG_ROOT! |
| 53 : | sh002i | 655 | <Perl> |
| 54 : | use lib '!WEBWORK_ROOT!/lib'; | ||
| 55 : | sh002i | 1050 | use lib '!PG_ROOT!/lib'; |
| 56 : | sh002i | 655 | </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 : | gage | 1692 | |
| 72 : | sh002i | 655 | # DocumentRoot does have to exist, and not have a subdirectory |
| 73 : | sh002i | 1177 | # named "webwork2". It suffices. |
| 74 : | sh002i | 655 | |
| 75 : | gage | 1692 | # 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 : | sh002i | 1703 | # The alias directive redirects to the toplevel material in the global webwork2/htdocs directory |
| 86 : | malsyned | 1028 | Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/ |
| 87 : | sh002i | 655 | |
| 88 : | sh002i | 1703 | # This sets the permissions on the toplevel webwork2/htdocs directory |
| 89 : | sh002i | 655 | # 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 : | malsyned | 1241 | |
| 97 : | # Possible forms of access limitation (edit to taste) | ||
| 98 : | |||
| 99 : | sh002i | 1644 | # The developer maintains a personal htpasswd file |
| 100 : | malsyned | 1241 | #<Location /> |
| 101 : | # AuthType Basic | ||
| 102 : | # AuthName "!WEBWORK_USER!'s WeBWorK development system" | ||
| 103 : | sh002i | 1511 | # AuthUserFile !WEBWORK_ROOT!/conf/htpasswd |
| 104 : | malsyned | 1241 | # Require valid-user |
| 105 : | #</Location> | ||
| 106 : | |||
| 107 : | sh002i | 1644 | # There is a site-wide htpasswd file somewhere, with all developers in it |
| 108 : | malsyned | 1241 | #<Location /> |
| 109 : | # AuthType Basic | ||
| 110 : | # AuthName "!WEBWORK_USER!'s WeBWorK development system" | ||
| 111 : | sh002i | 1644 | # AuthUserFile /path/to/site/htpasswd/file |
| 112 : | malsyned | 1241 | # Require valid-user |
| 113 : | #</Location> | ||
| 114 : | |||
| 115 : | sh002i | 1644 | # 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 : | malsyned | 1241 | #<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 |