Parent Directory
|
Revision Log
cleanup. -sam
1 ################################################################################ 2 # WeBWorK mod_perl (c) 2000-2002 WeBWorK Project 3 # $Id: httpd.conf.INSERTME,v 1.2 2003-06-17 21:36:34 sh002i Exp $ 4 ################################################################################ 5 # 6 # To add WeBWorK 2 to an existing Apache installation: 7 # 8 # (1) Make sure that mod_perl is installed and working. 9 # 10 # See http://perl.apache.org/docs/1.0/guide/install.html for more information. 11 # 12 # (2) Customize the links below to point the correct directories in your system 13 # by replacing WEBWORK_DIR with your local webwork directory path. 14 # 15 # In my system, running a personal development WeBWorK 2 in my home directory, 16 # I replace WEBWORK_DIR with /home/gage/webwork/. I have checked out the 17 # webwork-modperl and pg CVS modules into this directory. 18 # 19 # You can use a global find/replace to change WEBWORK_DIR to the appropriate 20 # directory. There are 7 occurences, plus 3 occurences in the comments. 21 # 22 # (3) insert the following code in a section of the httpd.conf file where other 23 # <Location> and <Alias> blocks are defined. 24 # 25 # The ww_status link is used for testing your mod_perl installation. The 26 # Apache::Status module is available on all machines on which mod_perl has been 27 # installed. 28 # 29 ################################################################################ 30 31 # This stanza sets the Apache::Status module to handle requests for the location 32 # /ww_status. This can be used to see if mod_perl is running correctly. Remove 33 # this when you are satisfied that everything is working properly. 34 # 35 <Location /ww_status> 36 SetHandler perl-script 37 PerlHandler Apache::Status 38 39 </Location> 40 41 # This stanza sets the Apache::WeBWorK module to handle requests for the 42 # location /webwork2. 43 # 44 <IfModule mod_perl.c> 45 PerlFreshRestart On 46 <Location /webwork2> 47 SetHandler perl-script 48 PerlHandler Apache::WeBWorK 49 50 PerlSetVar webwork_root WEBWORK_DIR/webwork-modperl 51 PerlSetVar pg_root /WEBWORK_DIR/pg 52 53 <Perl> 54 use lib 'WEBWORK_DIR/webwork-modperl/lib'; 55 use lib 'WEBWORK_DIR/pg/lib'; 56 </Perl> 57 </Location> 58 </IfModule> 59 60 # This Alias should point to the WeBWorK 2 htdocs directory. It contains 61 # resources referenced by scripts within the system. 62 # 63 Alias /webwork2_files/ /WEBWORK_DIR/webwork-modperl/htdocs/ 64 65 # This stanza sets the access permissions on the WeBWorK 2 htdocs directory. 66 # The path given here should match the path given above in the Alias directive. 67 # 68 <Directory "/WEBWORK_DIR/webwork-modperl/htdocs"> 69 Options Indexes FollowSymLinks MultiViews 70 AllowOverride None 71 Order allow,deny 72 Allow from all 73 </Directory>
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |