| 1 | # The best way to turn this into a working webwork server config file |
1 | # The best way to turn this into a working webwork server config file is to do |
| 2 | # is to do a global find/replace on the string !WEBWORK_ROOT! with the |
2 | # a global find/replace on the following strings: |
| 3 | # root of your personal webwork-modperl tree. For example, |
3 | # !WEBWORK_ROOT! -> the root of your personal webwork-modperl tree |
| 4 | # /home/malsyned/webwork-modperl |
4 | # !WEBWORK_USER! -> your user name |
| 5 | |
5 | |
| 6 | Include /usr/local/etc/apache/httpd-wwmp-header.conf |
6 | Include /usr/local/etc/apache/httpd-wwmp-header.conf |
| 7 | |
7 | |
| 8 | Port 5000 |
8 | Port 5000 |
| 9 | User malsyned |
9 | User !WEBWORK_USER! |
| 10 | Group malsyned |
10 | Group !WEBWORK_USER! |
| 11 | |
11 | |
| 12 | ServerAdmin malsyned@cif.rochester.edu |
12 | ServerAdmin !WEBWORK_USER!@localhost |
| 13 | |
13 | |
| 14 | LockFile !WEBWORK_ROOT!/logs/httpd.lock |
14 | LockFile !WEBWORK_ROOT!/logs/httpd.lock |
| 15 | PidFile !WEBWORK_ROOT!/logs/httpd.pid |
15 | PidFile !WEBWORK_ROOT!/logs/httpd.pid |
| 16 | ErrorLog !WEBWORK_ROOT!/logs/httpd-error.log |
16 | ErrorLog !WEBWORK_ROOT!/logs/httpd-error.log |
| 17 | |
17 | |
| … | |
… | |
| 19 | # invocations of Apache. webwork-dev doens't appear to be one of those |
19 | # invocations of Apache. webwork-dev doens't appear to be one of those |
| 20 | # systems. |
20 | # systems. |
| 21 | #ScoreBoardFile /var/run/httpd.scoreboard |
21 | #ScoreBoardFile /var/run/httpd.scoreboard |
| 22 | |
22 | |
| 23 | PerlFreshRestart On |
23 | PerlFreshRestart On |
| 24 | <Location /webwork> |
24 | <Location /webwork-!WEBWORK_USER!> |
| 25 | SetHandler perl-script |
25 | SetHandler perl-script |
| 26 | PerlHandler Apache::WeBWorK |
26 | PerlHandler Apache::WeBWorK |
| 27 | |
27 | |
| 28 | PerlSetVar webwork_root !WEBWORK_ROOT! |
28 | PerlSetVar webwork_root !WEBWORK_ROOT! |
| 29 | <Perl> |
29 | <Perl> |
| … | |
… | |
| 47 | # DocumentRoot does have to exist, and not have a subdirectory |
47 | # DocumentRoot does have to exist, and not have a subdirectory |
| 48 | # named "webwork". It suffices. |
48 | # named "webwork". It suffices. |
| 49 | DocumentRoot "htdocs" |
49 | DocumentRoot "htdocs" |
| 50 | |
50 | |
| 51 | # This alias, however, is important. |
51 | # This alias, however, is important. |
| 52 | Alias /webwork_files/ !WEBWORK_ROOT!/htdocs/ |
52 | Alias /webwork-!WEBWORK_USER!_files/ !WEBWORK_ROOT!/htdocs/ |
| 53 | |
53 | |
| 54 | # This should match the DocumentRoot |
54 | # This should match the DocumentRoot |
| 55 | <Directory "!WEBWORK_ROOT!/htdocs"> |
55 | <Directory "!WEBWORK_ROOT!/htdocs"> |
| 56 | Options Indexes FollowSymLinks MultiViews |
56 | Options Indexes FollowSymLinks MultiViews |
| 57 | AllowOverride None |
57 | AllowOverride None |