Parent Directory
|
Revision Log
Modified to add WSDL handler and SOAP handler for new webservices. Temporary fix to bug in Apache2 by hardcoding paths.
1 ################################################################################ 2 # WeBWorK Online Homework Delivery System 3 # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ 4 # $CVSHeader: webwork2/conf/webwork.apache2-config.dist,v 1.2.2.3 2007/04/25 16:40:02 sh002i Exp $ 5 # 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 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. 10 # 11 # This program is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the 14 # Artistic License for more details. 15 ################################################################################ 16 17 # This file configures Apache to handle requests for WeBWorK. To install WeBWorK 18 # support in your Apache configuration, add the following line to the end of 19 # your Apache configuration file (usually apache.conf or httpd.conf): 20 # 21 # Include /path/to/webwork.apache-config 22 # 23 # Customize the variable $webwork_dir below to match the location of your 24 # WeBWorK installation. 25 26 PerlModule mod_perl2 27 28 <Perl> 29 30 my $webwork_dir = "/opt/webwork/webwork2"; 31 32 eval "use lib '$webwork_dir/lib'"; die $@ if $@; 33 eval "use WeBWorK::CourseEnvironment"; die $@ if $@; 34 35 my $ce = new WeBWorK::CourseEnvironment({ webwork_dir => $webwork_dir }); 36 my $webwork_url = $ce->{webwork_url}; 37 my $pg_dir = $ce->{pg_dir}; 38 my $webwork_htdocs_url = $ce->{webwork_htdocs_url}; 39 my $webwork_htdocs_dir = $ce->{webwork_htdocs_dir}; 40 my $webwork_courses_url = $ce->{webwork_courses_url}; 41 my $webwork_courses_dir = $ce->{webwork_courses_dir}; 42 eval "use lib '$pg_dir/lib'"; die $@ if $@; 43 44 eval "use WeBWorK::PG::ImageGenerator"; die $@ if $@; 45 $WeBWorK::SeedCE{webwork_dir} = $webwork_dir; 46 $ENV{WEBWORK_ROOT} = $webwork_dir; 47 48 </Perl> 49 50 AliasMatch /webwork2_course_files/([^/]*)/(.*) /opt/webwork/courses/$1/html/$2 51 Alias /webwork2_files /opt/webwork/webwork2/htdocs 52 <Directory /opt/webwork/courses/*/html> 53 Allow from all 54 AllowOverride None 55 Options FollowSymLinks 56 Order allow,deny 57 </Directory> 58 <Directory /opt/webwork/webwork2/htdocs> 59 Allow from all 60 AllowOverride None 61 Options FollowSymLinks 62 Order allow,deny 63 </Directory> 64 <Location /webwork2> 65 PerlInitHandler Apache2::Reload 66 PerlSetVar ReloadAll Off 67 PerlSetVar ReloadModules "Apache::WeBWorK WeBWorK::*" 68 PerlHandler Apache::WeBWorK 69 SetHandler perl-script 70 #PerlFixuphandler Apache::DB 71 </Location> 72 #WEBWORK SOAP TEST CONFIGURATION 73 <Files soap.php> 74 PerlInitHandler Apache2::Reload 75 PerlSetVar ReloadAll On 76 PerlSetVar ReloadModules "WebworkSOAP WeBWorK::* WebworkSOAP::* WebworkSOAP::Classes::*" 77 </Files> 78 79 PerlModule Apache2::Reload 80 PerlModule WebworkSOAP 81 #WEBWORK SOAP CONFIGURATION 82 <Location /webwork2_rpc> 83 PerlInitHandler Apache2::Reload 84 PerlHandler Apache::SOAP 85 SetHandler perl-script 86 PerlSetVar ReloadAll Off 87 PerlSetVar ReloadModules "WeBWorK::* WebworkSOAP WebworkSOAP::*" 88 PerlSetVar dispatch_to "WebworkSOAP" 89 PerlSetVar options "compress_threshold => 10000" 90 Order Allow,Deny 91 Allow from All 92 </Location> 93 #WEBWORK SOAP WSDL HANDLER :: TO BE REPLACED WITH A FILE FOR PRODUCTION SERVERS 94 <Location /webwork2_wsdl> 95 PerlInitHandler Apache2::Reload 96 PerlSetVar ReloadAll Off 97 PerlSetVar ReloadModules "WeBWorK::* WebworkSOAP::* WebworkSOAP" 98 PerlSetVar dispatch_to "WebworkSOAP::WSDL" 99 PerlSetVar options "compress_threshold => 10000" 100 PerlHandler WebworkSOAP::WSDL 101 SetHandler perl-script 102 Order Allow,Deny 103 Allow from All 104 </Location> 105 106
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |