Parent Directory
|
Revision Log
Changed port range to 8000-8999 instead of 11000 to 11999
1 ################################################################################ 2 # WeBWorK Online Homework Delivery System 3 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 4 # $CVSHeader: webwork-modperl/conf/devel.apache-config.dist,v 1.5 2004/12/28 04:59:52 gage 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 is an Apache configuration file suitable for use when doing development 18 # on the WeBWorK 2 system. This setup allows each developer to run an 19 # independent Apache server under their own UID, using their own working copy of 20 # the WeBWorK code. The configuration is split into three parts: 21 # 22 # The first part is a site-specific (but user-indepenent) file named 23 # devel-site.apache-config. It contains directives that are common to all 24 # development servers on the same host. The site administrator can chose to 25 # maintain a single copy of this file and have all developers reference it in a 26 # central location. 27 # 28 # The second part is the stock webwork.apache-config file that is used for 29 # normal installations. Customize this file, setting the $webwork_url, 30 # $webwork_dir, $pg_dir, etc. appropriatly for your development server. 31 # 32 # The third part is this file. It contains the user-specific directives that are 33 # specific to each developer's server. 34 35 ################################################################################ 36 # Include site-specific configuration 37 ################################################################################ 38 39 Include /path/to/webwork2/conf/devel-site.apache-config 40 41 ################################################################################ 42 # Include WeBWorK configuration 43 ################################################################################ 44 45 Include /path/to/webwork2/conf/webwork.apache-config 46 47 ################################################################################ 48 # Perform user-specific configuration 49 ################################################################################ 50 51 <Perl> 52 53 my $user_name = (getpwuid $>)[0]; 54 my $group_name = (getgrgid $))[0]; 55 my $host_name = Apache->server->server_hostname; 56 57 # The server will run as the user who starts it. 58 $User = $user_name; 59 $Group = $group_name; 60 61 # It will listen on a port equal to the UID of the user who starts it + 10000. 62 $Port = $> + 7000; # effectively picks a port between 8000 and 8999 since uid's are 1000+ 63 64 # Email address of server administator. 65 $ServerAdmin = "$user_name\@$host_name"; 66 67 # Locations of some files. 68 $LockFile = "$WeBWorK::SeedCE{webwork_dir}/logs/httpd.lock"; 69 $PidFile = "$WeBWorK::SeedCE{webwork_dir}/logs/httpd.pid"; 70 $ErrorLog = "$WeBWorK::SeedCE{webwork_dir}/logs/error.log"; 71 72 # Control the number of child processes and how long they stick around. 73 $StartServers = 2; 74 $MinSpareServers = 2; 75 $MaxSpareServers = 2; 76 $MaxClients = 150; 77 $MaxRequestsPerChild = 100; 78 79 # The document root doesn't really matter, but it has to be set, so we set it to 80 # the htdocs directory. 81 $DocumentRoot = $WeBWorK::SeedCE{webwork_htdocs_dir}; 82 83 # You may want to add access control to prevent interlopers from monkeying with 84 # your development system. This is a really good idea, since there could 85 # potentially be security holes in the code. Create a file named .htpasswd in 86 # the conf containing accounts for those allowed to access your development 87 # system: 88 # 89 # htpasswd -c .htpasswd user-name 90 91 #$Location{"/"} = { 92 # AuthType => "Basic", 93 # AuthName => "\"$user_name's WeBWorK development system\"", # ' requires extra "" 94 # AuthUserFile => "$WeBWorK::SeedCE{webwork_dir}/conf/.htpasswd", 95 # Require => "valid-user", 96 #}; 97 98 </Perl> 99 100 ################################################################################ 101 # Stick any local additions down here 102 ################################################################################ 103 104 #Alias /segue /home/gage/webwork/webwork-modperl/htdocs/segue 105 #Alias /moodle /home/gage/webwork/webwork-modperl/htdocs/moodle
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |