Parent Directory
|
Revision Log
Added instructions and sample configs for limiting access to the development servers.
1 # The best way to turn this into a working webwork server config file is to do 2 # a global find/replace on the following strings: 3 # !WEBWORK_ROOT! -> the root of your personal webwork-modperl tree 4 # !WEBWORK_USER! -> your user name 5 # !WEBWORK_PORT! -> the port on which you want to run this server 6 # (please use 10000 + your UID) 7 # !PG_ROOT! -> the root of your personal pg tree 8 # If your home directories are stored somewhere other than /home (for example, 9 # /u) you should also replace /home with the directory used at your site. 10 11 # After those find/replace operations, you should edit the access control 12 # statements at the bottom of this file. 13 14 Include /usr/local/etc/apache/httpd-wwmp-header.conf 15 16 Port !WEBWORK_PORT! 17 User !WEBWORK_USER! 18 Group !WEBWORK_USER! 19 20 ServerAdmin !WEBWORK_USER!@localhost 21 22 LockFile !WEBWORK_ROOT!/logs/httpd.lock 23 PidFile !WEBWORK_ROOT!/logs/httpd.pid 24 ErrorLog !WEBWORK_ROOT!/logs/error.log 25 26 # On systems that use it, ScoreBoardFile must be different for different 27 # invocations of Apache. webwork-dev doens't appear to be one of those 28 # systems. 29 #ScoreBoardFile /var/run/httpd.scoreboard 30 31 PerlFreshRestart On 32 <Location /webwork2> 33 SetHandler perl-script 34 PerlHandler Apache::WeBWorK 35 36 PerlSetVar webwork_root !WEBWORK_ROOT! 37 PerlSetVar pg_root !PG_ROOT! 38 <Perl> 39 use lib '!WEBWORK_ROOT!/lib'; 40 use lib '!PG_ROOT!/lib'; 41 </Perl> 42 </Location> 43 44 # We're limiting the number of children because we'll be running a lot and 45 # don't want to bog the development box down. 46 StartServers 2 47 MinSpareServers 2 48 MaxSpareServers 2 49 MaxClients 150 50 # How "old" a child is allowed to get. 0 for unlimited requests 51 # Pick a low number -- you're bound to screw something up, right? 52 MaxRequestsPerChild 100 53 54 # This DocumentRoot doesn't actually make a lot of sense. In a 55 # WeBWorK mod_perl system, there is no static document root, but the 56 # DocumentRoot does have to exist, and not have a subdirectory 57 # named "webwork2". It suffices. 58 DocumentRoot "!WEBWORK_ROOT!/htdocs" 59 60 # This alias, however, is important. 61 Alias /webwork2_files/ !WEBWORK_ROOT!/htdocs/ 62 63 # This should match the DocumentRoot 64 <Directory "!WEBWORK_ROOT!/htdocs"> 65 Options Indexes FollowSymLinks MultiViews 66 AllowOverride None 67 Order allow,deny 68 Allow from all 69 </Directory> 70 71 # Possible forms of access limitation (edit to taste) 72 73 # The user maintains his own htpasswd file, presumably with only herself in it 74 #<Location /> 75 # AuthType Basic 76 # AuthName "!WEBWORK_USER!'s WeBWorK development system" 77 # AuthUserFile /home/!WEBWORK_USER!/webwork-modperl/conf/htpasswd 78 # Require valid-user 79 #</Location> 80 81 # The system administrator maintains an htpasswd file that all users reference 82 #<Location /> 83 # AuthType Basic 84 # AuthName "!WEBWORK_USER!'s WeBWorK development system" 85 # AuthUserFile /usr/local/etc/apache/htpasswd-wwmp 86 # Require valid-user 87 #</Location> 88 89 # You have mod_pam_auth and would like to authenticate against your 90 # /etc/passwd file. (NOTE: It is a good idea to use Digest authentication 91 # instead of Basic, even though this limits your choice of browsers, because 92 # of the heightened sensitivity of normal system passwords.) 93 #<Location /> 94 # AuthType Digest 95 # AuthName "!WEBWORK_USER!'s WeBWorK development system" 96 # AuthPAM_Enabled on 97 # Require valid-user 98 ## Require group wwdev 99 #</Location>
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |