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

Diff of /trunk/webwork2/conf/httpd-wwmp.conf.dist

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

Revision 1663 Revision 1703
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader$ 4# $CVSHeader: webwork-modperl/conf/httpd-wwmp.conf.dist,v 1.12 2003/12/28 22:33:33 gage Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 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 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 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. 9# version, or (b) the "Artistic License" which comes with this package.
14# Artistic License for more details. 14# Artistic License for more details.
15################################################################################ 15################################################################################
16 16
17# The best way to turn this into a working webwork server config file is to do 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: 18# a global find/replace on the following strings:
19# !WEBWORK_ROOT! -> the root of your personal webwork-modperl tree 19# !WEBWORK_ROOT! -> the root of your personal webwork2 tree
20# !WEBWORK_USER! -> your user name 20# !WEBWORK_USER! -> your user name
21# !WEBWORK_PORT! -> the port on which you want to run this server 21# !WEBWORK_PORT! -> the port on which you want to run this server
22# (please use 10000 + your UID) 22# (please use 10000 + your UID)
23# !PG_ROOT! -> the root of your personal pg tree 23# !PG_ROOT! -> the root of your personal pg tree
24# !COURSES_ROOT! -> the root of courses tree
24# 25#
25# After those find/replace operations, you should edit the access control 26# After those find/replace operations, you should edit the access control
26# statements at the bottom of this file. 27# statements at the bottom of this file.
27 28
28Include !WEBWORK_ROOT!/conf/httpd-wwmp-header.conf 29Include !WEBWORK_ROOT!/conf/httpd-wwmp-header.conf
65# Pick a low number -- you're bound to screw something up, right? 66# Pick a low number -- you're bound to screw something up, right?
66MaxRequestsPerChild 100 67MaxRequestsPerChild 100
67 68
68# This DocumentRoot doesn't actually make a lot of sense. In a 69# This DocumentRoot doesn't actually make a lot of sense. In a
69# WeBWorK mod_perl system, there is no static document root, but the 70# WeBWorK mod_perl system, there is no static document root, but the
71
70# DocumentRoot does have to exist, and not have a subdirectory 72# DocumentRoot does have to exist, and not have a subdirectory
71# named "webwork2". It suffices. 73# named "webwork2". It suffices.
72DocumentRoot "!WEBWORK_ROOT!/htdocs"
73 74
74# This alias, however, is important. 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.
83AliasMatch ^/webwork2_files/courses/([^/]*)/(.*) !COURSES_ROOT!/$1/html/$2
84
85# The alias directive redirects to the toplevel material in the global webwork2/htdocs directory
75Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/ 86Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/
76 87
88# This sets the permissions on the toplevel webwork2/htdocs directory
77# This should match the DocumentRoot 89# This should match the DocumentRoot
78<Directory "!WEBWORK_ROOT!/htdocs"> 90<Directory "!WEBWORK_ROOT!/htdocs">
79 Options Indexes FollowSymLinks MultiViews 91 Options Indexes FollowSymLinks MultiViews
80 AllowOverride None 92 AllowOverride None
81 Order allow,deny 93 Order allow,deny

Legend:
Removed from v.1663  
changed lines
  Added in v.1703

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9