Parent Directory
|
Revision Log
changed default name of error log to error.log (better for tab completion!)
1 # The best way to turn this into a working webwork server config file is to do 2 # a global find/replace on the following strings: 3 # !WEBWORK_ROOT! -> the root of your personal webwork-modperl tree 4 # !WEBWORK_USER! -> your user name 5 # !WEBWORK_PORT! -> the port on which you want to run this server 6 # (please use 10000 + your UID) 7 # !PG_ROOT! -> the root of your personal pg tree 8 9 Include /usr/local/etc/apache/httpd-wwmp-header.conf 10 11 Port !WEBWORK_PORT! 12 User !WEBWORK_USER! 13 Group !WEBWORK_USER! 14 15 ServerAdmin !WEBWORK_USER!@localhost 16 17 LockFile !WEBWORK_ROOT!/logs/httpd.lock 18 PidFile !WEBWORK_ROOT!/logs/httpd.pid 19 ErrorLog !WEBWORK_ROOT!/logs/error.log 20 21 # On systems that use it, ScoreBoardFile must be different for different 22 # invocations of Apache. webwork-dev doens't appear to be one of those 23 # systems. 24 #ScoreBoardFile /var/run/httpd.scoreboard 25 26 PerlFreshRestart On 27 <Location /webwork2> 28 SetHandler perl-script 29 PerlHandler Apache::WeBWorK 30 31 PerlSetVar webwork_root !WEBWORK_ROOT! 32 PerlSetVar pg_root !PG_ROOT! 33 <Perl> 34 use lib '!WEBWORK_ROOT!/lib'; 35 use lib '!PG_ROOT!/lib'; 36 </Perl> 37 </Location> 38 39 # We're limiting the number of children because we'll be running a lot and 40 # don't want to bog the development box down. 41 StartServers 2 42 MinSpareServers 2 43 MaxSpareServers 2 44 MaxClients 150 45 # How "old" a child is allowed to get. 0 for unlimited requests 46 # Pick a low number -- you're bound to screw something up, right? 47 MaxRequestsPerChild 100 48 49 # This DocumentRoot doesn't actually make a lot of sense. In a 50 # WeBWorK mod_perl system, there is no static document root, but the 51 # DocumentRoot does have to exist, and not have a subdirectory 52 # named "webwork2". It suffices. 53 DocumentRoot "!WEBWORK_ROOT!/htdocs" 54 55 # This alias, however, is important. 56 Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/ 57 58 # This should match the DocumentRoot 59 <Directory "!WEBWORK_ROOT!/htdocs"> 60 Options Indexes FollowSymLinks MultiViews 61 AllowOverride None 62 Order allow,deny 63 Allow from all 64 </Directory>
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |