Parent Directory
|
Revision Log
use port range 9000-9999 for apache2
1 ################################################################################ 2 # WeBWorK Online Homework Delivery System 3 # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ 4 # $CVSHeader: webwork2/conf/devel.apache2-config.dist,v 1.1 2006/06/17 21:21:24 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 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.apache2-config 40 41 ################################################################################ 42 # Include WeBWorK configuration 43 ################################################################################ 44 45 Include /path/to/webwork2/conf/webwork.apache2-config 46 47 ################################################################################ 48 # Perform user-specific configuration 49 ################################################################################ 50 51 <Perl> 52 53 use Apache2::ServerUtil; 54 use Apache2::ServerRec; 55 56 my $user_name = (getpwuid $>)[0]; 57 my $group_name = (getgrgid $))[0]; 58 my $host_name = Apache2::ServerUtil->server->server_hostname; 59 60 # The server will run as the user who starts it. 61 $User = $user_name; 62 $Group = $group_name; 63 64 # It will listen on a port equal to the UID of the user who starts it +8000. 65 # This effectively picks a port between 9000 and 9999 since UID's are >=1000. 66 $Listen = "0.0.0.0:" . ($>+8000); 67 68 # Email address of server administator. 69 $ServerAdmin = "$user_name\@$host_name"; 70 71 </Perl> 72 73 ################################################################################ 74 # Stick any local additions down here 75 ################################################################################ 76
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |