[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2446 Revision 2447
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK Online Homework Delivery System 3# WeBWorK Online Homework Delivery System
4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.83 2004/07/03 17:29:12 sh002i Exp $ 5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.84 2004/07/04 02:08:28 dpvc Exp $
6# 6#
7# This program is free software; you can redistribute it and/or modify it under 7# This program is free software; you can redistribute it and/or modify it under
8# the terms of either: (a) the GNU General Public License as published by the 8# the terms of either: (a) the GNU General Public License as published by the
9# Free Software Foundation; either version 2, or (at your option) any later 9# Free Software Foundation; either version 2, or (at your option) any later
10# version, or (b) the "Artistic License" which comes with this package. 10# version, or (b) the "Artistic License" which comes with this package.
20# All package variables set in this file are added to the course environment. 20# All package variables set in this file are added to the course environment.
21# If you wish to set a variable here but omit it from the course environment, 21# If you wish to set a variable here but omit it from the course environment,
22# use the "my" keyword. The following variables are available to this file: 22# use the "my" keyword. The following variables are available to this file:
23# 23#
24# $webworkRoot directory that contains the WeBWorK distribution 24# $webworkRoot directory that contains the WeBWorK distribution
25# corresponds to the directory !WEBWORK_ROOT! in the stanza below
25# $webworkURLRoot base URL handled by Apache::WeBWorK 26# $webworkURLRoot base URL handled by Apache::WeBWorK
27# corresponds to url /webwork2 in the stanza below
26# $pgRoot directory that contains the PG distribution 28# $pgRoot directory that contains the PG distribution
29# corresponds to the directory !PG_ROOT! below
27# $courseName name of the course being used 30# $courseName name of the course being used (e.g. mth101)
31#
32# Stanza placed in the httpd.conf directory
33# <Location /webwork2>
34# SetHandler perl-script
35# PerlHandler Apache::WeBWorK
36#
37# PerlSetVar webwork_root !WEBWORK_ROOT!
38# PerlSetVar pg_root !PG_ROOT!
39# <Perl>
40# use lib '!WEBWORK_ROOT!/lib';
41# use lib '!PG_ROOT!/lib';
42# </Perl>
43# </Location>
28 44
45################################################################################
46# The following two variables must match the first and second entries of the
47# AliasMatch statement placed in the httpd.conf file
48################################################################################
49
50
51# The AliasMatch directive directs to files stored in the html directory of each course.
52# AliasMatch ^/webwork2_course_files/([^/]*)/(.*) !COURSES_ROOT!/$1/html/$2
53# URL ---------> html directory of the course
54#
55# $1 matches the courseName $2 matches any subdirectories of the course html directory
56# !COURSES_ROOT! matches $courseDirsRoot
57
58my $courseURLRoot = "/webwork2_course_files/$courseName";
59
60my $courseDirsRoot = "!WEBWORK_ROOT!/courses/";
61
62
63# This alias directive redirects /webwork2_files to the toplevel material in the global webwork2/htdocs directory
64# Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/
65
66my $webworkLocalDocsURL = "/webwork2_files";
67my $webworkLocalDocsDir = "$webworkRoot/htdocs";
29################################################################################ 68################################################################################
30# System-wide locations (directories and URLs) 69# System-wide locations (directories and URLs)
31################################################################################ 70################################################################################
32 71
33# The root directory, set by webwork_root variable in Apache configuration. 72# The root directory, set by webwork_root variable in Apache configuration.
44 83
45# Location of configuration files, templates, snippets, etc. 84# Location of configuration files, templates, snippets, etc.
46$webworkDirs{conf} = "$webworkDirs{root}/conf"; 85$webworkDirs{conf} = "$webworkDirs{root}/conf";
47 86
48# Location of course directories. 87# Location of course directories.
49$webworkDirs{courses} = "$webworkDirs{root}/courses"; 88$webworkDirs{courses} = "$courseDirsRoot";
50 89
51# Contains the WeBWorK libraries. (FIXME: not used) 90# Contains the WeBWorK libraries. (FIXME: not used)
52#$webworkDirs{lib} = "$webworkDirs{root}/lib"; 91#$webworkDirs{lib} = "$webworkDirs{root}/lib";
53 92
54# Contains log files. 93# Contains log files.
65# The root URL (usually /webwork2), set by <Location> in Apache configuration. 104# The root URL (usually /webwork2), set by <Location> in Apache configuration.
66$webworkURLs{root} = "$webworkURLRoot"; 105$webworkURLs{root} = "$webworkURLRoot";
67 106
68# Location of system-wide web-accessible files, such as equation images, and 107# Location of system-wide web-accessible files, such as equation images, and
69# help files. 108# help files.
70$webworkDirs{htdocs} = "$webworkDirs{root}/htdocs"; 109$webworkDirs{htdocs} = "$webworkLocalDocsDir";
71$webworkURLs{htdocs} = "/webwork2_files"; 110$webworkURLs{htdocs} = "$webworkLocalDocsURL";
72 111
73# The URL of the static WeBWorK home page (FIXME: not used) 112# The URL of the static WeBWorK home page (FIXME: not used)
74#$webworkURLs{home} = "$webworkURLs{htdocs}/index.html"; 113#$webworkURLs{home} = "$webworkURLs{htdocs}/index.html";
75 114
76# Location of web-accessible temporary files, such as equation images. 115# Location of web-accessible temporary files, such as equation images.
163 202
164# The preamble is the first thing in the TeX file. 203# The preamble is the first thing in the TeX file.
165$webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex"; 204$webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex";
166 205
167# The setHeader preceeds each set. It is a PG file. 206# The setHeader preceeds each set. It is a PG file.
168$webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; 207$webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # hardcopySetHeader.pg",
169 208
170# The problem divider goes between problems. 209# The problem divider goes between problems.
171$webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex"; 210$webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex";
172 211
173# The set footer goes after each set. Is is a PG file. 212# The set footer goes after each set. Is is a PG file.
183$webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex"; 222$webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex";
184 223
185##### Screen snippets are used when displaying problem sets on the screen. 224##### Screen snippets are used when displaying problem sets on the screen.
186 225
187# The set header is displayed on the problem set page. It is a PG file. 226# The set header is displayed on the problem set page. It is a PG file.
188$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; 227$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg"
189 228
190################################################################################ 229################################################################################
191# Course-specific files 230# Course-specific files
192################################################################################ 231################################################################################
193 232

Legend:
Removed from v.2446  
changed lines
  Added in v.2447

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9