| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
| 3 | # $Id: global.conf,v 1.21 2002-07-25 19:49:46 sh002i Exp $ |
3 | # $Id: global.conf,v 1.22 2002-08-16 20:43:37 sh002i Exp $ |
| 4 | ################################################################################ |
4 | ################################################################################ |
| 5 | |
5 | |
| 6 | # This file is used to set up the default WeBWorK course environment for all |
6 | # This file is used to set up the default WeBWorK course environment for all |
| 7 | # requests. Values may be overwritten by the course.conf for a specific course. |
7 | # requests. Values may be overwritten by the course.conf for a specific course. |
| 8 | # All package variables set in this file are added to the course environment. |
8 | # All package variables set in this file are added to the course environment. |
| … | |
… | |
| 15 | # this hash defines the locations of directories needed by WeBWorK |
15 | # this hash defines the locations of directories needed by WeBWorK |
| 16 | %webworkDirs = ( |
16 | %webworkDirs = ( |
| 17 | root => "$webworkRoot", |
17 | root => "$webworkRoot", |
| 18 | bin => "$webworkRoot/bin", |
18 | bin => "$webworkRoot/bin", |
| 19 | conf => "$webworkRoot/conf", |
19 | conf => "$webworkRoot/conf", |
| 20 | courses => "$webworkRoot/courses", |
20 | courses => "/ww/webwork/courses", #"$webworkRoot/courses", |
| 21 | lib => "$webworkRoot/lib", |
21 | lib => "$webworkRoot/lib", |
| 22 | tmp => "$webworkRoot/tmp", |
22 | tmp => "$webworkRoot/tmp", |
| 23 | macros => "$webworkRoot/macros", |
23 | macros => "$webworkRoot/macros", |
| 24 | ); |
24 | ); |
| 25 | |
25 | |
| … | |
… | |
| 27 | %webworkFiles = ( |
27 | %webworkFiles = ( |
| 28 | environment => "$webworkDirs{conf}/global.conf", |
28 | environment => "$webworkDirs{conf}/global.conf", |
| 29 | ); |
29 | ); |
| 30 | |
30 | |
| 31 | # this hash defines URLs needed by WeBWorK |
31 | # this hash defines URLs needed by WeBWorK |
| 32 | my $webworkURLRoot = "/webwork_files"; |
32 | my $webworkURLRoot = "/modperl-sam"; |
| 33 | %webworkURLs = ( |
33 | %webworkURLs = ( |
| 34 | base => "$webworkURLRoot", |
34 | root => "$webworkURLRoot", |
| 35 | logo => "$webworkURLRoot/images/webwork_logo.gif", |
35 | htdocs => "/webwork_files", |
| 36 | courses => "/ww/courses", #"$webworkURLRoot/courses", |
|
|
| 37 | docs => "/webworkDocs", |
36 | docs => "/webworkDocs", |
| 38 | ); |
37 | ); |
| 39 | |
38 | |
| 40 | # this hash defines the default locations for course subdirectories |
39 | # this hash defines the default locations for course subdirectories |
| 41 | my $courseRoot = "$webworkDirs{courses}/$courseName"; |
40 | my $courseRoot = "$webworkDirs{courses}/$courseName"; |
| 42 | %courseDirs = ( |
41 | %courseDirs = ( |
| … | |
… | |
| 56 | %courseFiles = ( |
55 | %courseFiles = ( |
| 57 | environment => "$courseDirs{root}/course.conf", |
56 | environment => "$courseDirs{root}/course.conf", |
| 58 | ); |
57 | ); |
| 59 | |
58 | |
| 60 | # this hash defines default URLs |
59 | # this hash defines default URLs |
| 61 | my $courseURLRoot = "$webworkURLs{courses}/$courseName"; |
60 | my $courseURLRoot = "$webworkURLs{dynamicRoot}/$courseName"; |
| 62 | %courseURLs = ( |
61 | %courseURLs = ( |
| 63 | base => "$courseURLRoot", |
62 | base => "$courseURLRoot", |
| 64 | html => "$courseURLRoot", |
63 | html => "$courseURLRoot", |
| 65 | html_temp => "$courseURLRoot/tmp", |
64 | html_temp => "$courseURLRoot/tmp", |
| 66 | ); |
65 | ); |
| … | |
… | |
| 76 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
75 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
| 77 | psvn_digits => 5, |
76 | psvn_digits => 5, |
| 78 | ); |
77 | ); |
| 79 | |
78 | |
| 80 | %templates = ( |
79 | %templates = ( |
| 81 | system => "$webworkDirs{conf}/system.template", |
80 | system => "$webworkDirs{conf}/test.template", |
| 82 | ); |
81 | ); |
| 83 | |
82 | |
| 84 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
83 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
| 85 | $sessionKeyTimeout = 60*30; |
84 | $sessionKeyTimeout = 60*30; |
| 86 | |
85 | |