Annotation of loncom/access.conf, revision 1.1
1.1 ! harris41 1: ## modified for LearningOnline Network
! 2: ## Gerd Kortemeyer
! 3: ##
! 4: ## 7/8,7/10,7/14,11/22,01/06,01/20,01/21
! 5: ##
! 6: ## access.conf -- Apache HTTP server configuration file
! 7: ##
! 8:
! 9: # access.conf: Global access configuration
! 10: # Online docs at http://www.apache.org/
! 11:
! 12: # This file defines server settings which affect which types of services
! 13: # are allowed, and in what circumstances.
! 14:
! 15: # Each directory to which Apache has access, can be configured with respect
! 16: # to which services and features are allowed and/or disabled in that
! 17: # directory (and its subdirectories).
! 18:
! 19: # Originally by Rob McCool
! 20:
! 21: # First, we configure the "default" to be a very restrictive set of
! 22: # permissions.
! 23:
! 24: <Directory />
! 25: Options None
! 26: AllowOverride None
! 27: </Directory>
! 28:
! 29: # Note that from this point forward you must specifically allow
! 30: # particular features to be enabled - so if something's not working as
! 31: # you might expect, make sure that you have specifically enabled it
! 32: # below.
! 33:
! 34: # This should be changed to whatever you set DocumentRoot to.
! 35:
! 36: <Directory /home/httpd/html>
! 37:
! 38: # This may also be "None", "All", or any combination of "Indexes",
! 39: # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
! 40:
! 41: # Note that "MultiViews" must be named *explicitly* --- "Options All"
! 42: # doesn't give it to you.
! 43:
! 44: Options Includes FollowSymLinks
! 45:
! 46: # This controls which options the .htaccess files in directories can
! 47: # override. Can also be "All", or any combination of "Options", "FileInfo",
! 48: # "AuthConfig", and "Limit"
! 49:
! 50: AllowOverride None
! 51:
! 52: # Controls who can get stuff from this server.
! 53:
! 54: order allow,deny
! 55: allow from all
! 56:
! 57: </Directory>
! 58:
! 59: # /home/httpd/cgi-bin should be changed to whatever your ScriptAliased
! 60: # CGI directory exists, if you have that configured.
! 61:
! 62: <Directory /home/httpd/cgi-bin>
! 63: AllowOverride None
! 64: Options ExecCGI
! 65: </Directory>
! 66:
! 67: # Allow server status reports, with the URL of http://servername/server-status
! 68: # Change the ".your_domain.com" to match your domain to enable.
! 69:
! 70: <Location /server-status>
! 71: SetHandler server-status
! 72: AuthName "HTTPD Server Status"
! 73: AuthType Basic
! 74: AuthUserFile /home/httpd/lonTabs/htpasswd
! 75: require user lonadm
! 76: </Location>
! 77:
! 78: <Location /lon-status>
! 79: AuthName "LON Server Status"
! 80: AuthType Basic
! 81: AuthUserFile /home/httpd/lonTabs/htpasswd
! 82: require user lonadm
! 83: </Location>
! 84:
! 85: # Allow access to local system documentation from localhost
! 86: Alias /doc /usr/doc
! 87: <Directory /usr/doc>
! 88: order deny,allow
! 89: deny from all
! 90: allow from localhost
! 91: Options Indexes FollowSymLinks
! 92: </Directory>
! 93:
! 94: # There have been reports of people trying to abuse an old bug from pre-1.1
! 95: # days. This bug involved a CGI script distributed as a part of Apache.
! 96: # By uncommenting these lines you can redirect these attacks to a logging
! 97: # script on phf.apache.org. Or, you can record them yourself, using the script
! 98: # support/phf_abuse_log.cgi.
! 99:
! 100: #<Location /cgi-bin/phf*>
! 101: #deny from all
! 102: #ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
! 103: #</Location>
! 104:
! 105: # You may place any other directories or locations you wish to have
! 106: # access information for after this one.
! 107:
! 108:
! 109: # ------------------------------------------------------------ Machine Specific
! 110: #
! 111: # The variable values are also read and shared by lond
! 112:
! 113: # LON-internal HostID of this machine
! 114:
! 115: PerlSetVar lonHostID msua3
! 116:
! 117: # Role of this machine: library, access
! 118:
! 119: PerlSetVar lonRole access
! 120:
! 121: # Server Administration
! 122:
! 123: PerlSetVar lonAdmEMail korte@lite.msu.edu
! 124:
! 125: # Default domain
! 126:
! 127: PerlSetVar lonDefDomain msu
! 128:
! 129: # Load Limit ( 100% loadavg )
! 130:
! 131: PerlSetVar lonLoadLim 2.00
! 132:
! 133: # Expiration for local copies in seconds
! 134:
! 135: PerlSetVar lonExpire 86400
! 136:
! 137: # ----------------------------------------------------------- Internal Settings
! 138:
! 139: PerlSetVar lonIDsDir /home/httpd/lonIDs
! 140: PerlSetVar lonTabDir /home/httpd/lonTabs
! 141: PerlSetVar lonUsersDir /home/httpd/lonUsers
! 142: PerlSetVar lonIconsURL /adm/lonIcons
! 143: PerlSetVar londPort 5663
! 144: PerlSetVar lonSysEMail korte@lite.msu.edu
! 145: PerlSetVar lonDaemons /home/httpd/perl
! 146: PerlSetVar lonSockDir /home/httpd/sockets
! 147: PerlSetVar lonDocRoot /home/httpd/html
! 148: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
! 149:
! 150: # ------------------------------------------------------------ Perl Information
! 151:
! 152: PerlRequire conf/startup.pl
! 153: PerlFreshRestart On
! 154:
! 155: # ----------------------------------------------------------------- Directories
! 156:
! 157: <LocationMatch "^/res.*">
! 158: PerlAccessHandler Apache::lonacc
! 159: PerlHeaderParserHandler Apache::lonrep
! 160: ErrorDocument 403 /adm/login
! 161: </LocationMatch>
! 162:
! 163: <LocationMatch "^/raw.*">
! 164: PerlAccessHandler Apache::lonracc
! 165: </LocationMatch>
! 166:
! 167: <LocationMatch "^/\~.*">
! 168: PerlAccessHandler Apache::loncacc
! 169: ErrorDocument 403 /adm/login
! 170: ErrorDocument 404 /adm/notfound.html
! 171: ErrorDocument 406 /adm/unauthorized.html
! 172: </LocationMatch>
! 173:
! 174: <LocationMatch "^/r.*/$">
! 175: SetHandler perl-script
! 176: PerlHandler Apache::lonindexer
! 177: </LocationMatch>
! 178:
! 179: <LocationMatch "^/r.*\.problem$">
! 180: SetHandler perl-script
! 181: PerlHandler Apache::lonproblem
! 182: </LocationMatch>
! 183:
! 184: <Location /adm/roles>
! 185: PerlAccessHandler Apache::lonacc
! 186: SetHandler perl-script
! 187: PerlHandler Apache::lonroles
! 188: ErrorDocument 403 /adm/login
! 189: </Location>
! 190:
! 191: <Location /adm/login>
! 192: SetHandler perl-script
! 193: PerlHandler Apache::lonlogin
! 194: </Location>
! 195:
! 196: <Location /adm/authenticate>
! 197: SetHandler perl-script
! 198: PerlHandler Apache::lonauth
! 199: </Location>
! 200:
! 201:
! 202:
! 203:
! 204:
! 205:
! 206:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>