Annotation of loncom/access.conf, revision 1.19
1.1 harris41 1: ## modified for LearningOnline Network
2: ## Gerd Kortemeyer
3: ##
1.4 www 4: ## 7/8,7/10,7/14,11/22,01/06,01/20,01/21,5/29,5/31,7/1,7/10,8/22,8/29
1.1 harris41 5: ##
1.6 harris41 6: ## Scott Harrison
7: ##
8: ## 9/21,9/23
9: ##
1.7 www 10: ## Gerd Kortemeyer
11: ##
1.19 ! www 12: ## 10/3,10/5,10/12,10/16,10/20,11/2,11/6,11/10,11/20,11/23
1.7 www 13: ##
1.1 harris41 14: ## access.conf -- Apache HTTP server configuration file
15: ##
16:
17: # access.conf: Global access configuration
18: # Online docs at http://www.apache.org/
19:
20: # This file defines server settings which affect which types of services
21: # are allowed, and in what circumstances.
22:
23: # Each directory to which Apache has access, can be configured with respect
24: # to which services and features are allowed and/or disabled in that
25: # directory (and its subdirectories).
26:
27: # Originally by Rob McCool
28:
29: # First, we configure the "default" to be a very restrictive set of
30: # permissions.
31:
32: <Directory />
33: Options None
34: AllowOverride None
35: </Directory>
36:
37: # Note that from this point forward you must specifically allow
38: # particular features to be enabled - so if something's not working as
39: # you might expect, make sure that you have specifically enabled it
40: # below.
41:
42: # This should be changed to whatever you set DocumentRoot to.
43:
44: <Directory /home/httpd/html>
45:
46: # This may also be "None", "All", or any combination of "Indexes",
47: # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
48:
49: # Note that "MultiViews" must be named *explicitly* --- "Options All"
50: # doesn't give it to you.
51:
52: Options Includes FollowSymLinks
53:
54: # This controls which options the .htaccess files in directories can
55: # override. Can also be "All", or any combination of "Options", "FileInfo",
56: # "AuthConfig", and "Limit"
57:
58: AllowOverride None
59:
60: # Controls who can get stuff from this server.
61:
62: order allow,deny
63: allow from all
64:
65: </Directory>
66:
67: # /home/httpd/cgi-bin should be changed to whatever your ScriptAliased
68: # CGI directory exists, if you have that configured.
69:
70: <Directory /home/httpd/cgi-bin>
71: AllowOverride None
72: Options ExecCGI
73: </Directory>
74:
75: # Allow server status reports, with the URL of http://servername/server-status
76: # Change the ".your_domain.com" to match your domain to enable.
77:
78: <Location /server-status>
79: SetHandler server-status
80: AuthName "HTTPD Server Status"
81: AuthType Basic
82: AuthUserFile /home/httpd/lonTabs/htpasswd
83: require user lonadm
84: </Location>
85:
86: <Location /lon-status>
87: AuthName "LON Server Status"
88: AuthType Basic
89: AuthUserFile /home/httpd/lonTabs/htpasswd
90: require user lonadm
91: </Location>
92:
93: # Allow access to local system documentation from localhost
94: Alias /doc /usr/doc
95: <Directory /usr/doc>
96: order deny,allow
97: deny from all
98: allow from localhost
99: Options Indexes FollowSymLinks
100: </Directory>
101:
102: # There have been reports of people trying to abuse an old bug from pre-1.1
103: # days. This bug involved a CGI script distributed as a part of Apache.
104: # By uncommenting these lines you can redirect these attacks to a logging
105: # script on phf.apache.org. Or, you can record them yourself, using the script
106: # support/phf_abuse_log.cgi.
107:
108: #<Location /cgi-bin/phf*>
109: #deny from all
110: #ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
111: #</Location>
112:
113: # You may place any other directories or locations you wish to have
114: # access information for after this one.
115:
116:
117: # ------------------------------------------------------------ Machine Specific
118: #
119: # The variable values are also read and shared by lond
120:
121: # LON-internal HostID of this machine
122:
1.5 harris41 123: PerlSetVar lonHostID {[[[[lonHostID]]]]}
1.1 harris41 124:
125: # Role of this machine: library, access
126:
1.5 harris41 127: PerlSetVar lonRole {[[[[lonRole]]]]}
1.1 harris41 128:
129: # Server Administration
130:
1.5 harris41 131: PerlSetVar lonAdmEMail {[[[[lonAdmEMail]]]]}
1.1 harris41 132:
133: # Default domain
134:
1.5 harris41 135: PerlSetVar lonDefDomain {[[[[lonDefDomain]]]]}
1.1 harris41 136:
137: # Load Limit ( 100% loadavg )
138:
1.5 harris41 139: PerlSetVar lonLoadLim {[[[[lonLoadLim]]]]}
1.1 harris41 140:
1.16 www 141: # Expiration for local copies and tokens in seconds
1.1 harris41 142:
1.5 harris41 143: PerlSetVar lonExpire {[[[[lonExpire]]]]}
1.1 harris41 144:
145: # ----------------------------------------------------------- Internal Settings
146:
147: PerlSetVar lonIDsDir /home/httpd/lonIDs
148: PerlSetVar lonTabDir /home/httpd/lonTabs
149: PerlSetVar lonUsersDir /home/httpd/lonUsers
150: PerlSetVar lonIconsURL /adm/lonIcons
151: PerlSetVar londPort 5663
152: PerlSetVar lonSysEMail korte@lite.msu.edu
153: PerlSetVar lonDaemons /home/httpd/perl
154: PerlSetVar lonSockDir /home/httpd/sockets
155: PerlSetVar lonDocRoot /home/httpd/html
156: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.2 www 157: PerlSetVar lonBrowsDet netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:5.1&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:5&amaya:amaya:mozilla:V(\d+\.\d+)\s:1
1.1 harris41 158:
159: # ------------------------------------------------------------ Perl Information
160:
161: PerlRequire conf/startup.pl
162: PerlFreshRestart On
163:
1.4 www 164: # ================================================================= Directories
165:
166: # ------------------------------------------------------------- Access Handlers
1.1 harris41 167:
168: <LocationMatch "^/res.*">
169: PerlAccessHandler Apache::lonacc
170: PerlHeaderParserHandler Apache::lonrep
171: ErrorDocument 403 /adm/login
1.4 www 172: ErrorDocument 404 /adm/notfound.html
1.2 www 173: ErrorDocument 406 /adm/roles
1.19 ! www 174: </LocationMatch>
! 175:
! 176: <LocationMatch "^/priv.*">
! 177: PerlAccessHandler Apache::loncacc
! 178: SetHandler perl-script
! 179: PerlHandler Apache::lonconstruct
! 180: ErrorDocument 403 /adm/login
! 181: ErrorDocument 404 /adm/notfound.html
! 182: ErrorDocument 406 /adm/unauthorized.html
1.1 harris41 183: </LocationMatch>
184:
185: <LocationMatch "^/raw.*">
186: PerlAccessHandler Apache::lonracc
187: </LocationMatch>
188:
189: <LocationMatch "^/\~.*">
190: PerlAccessHandler Apache::loncacc
191: ErrorDocument 403 /adm/login
192: ErrorDocument 404 /adm/notfound.html
193: ErrorDocument 406 /adm/unauthorized.html
194: </LocationMatch>
195:
1.4 www 196: # ------------------------------------------------------------------------- RAT
1.1 harris41 197:
1.2 www 198: <LocationMatch "^/\~.*\.sequence$">
199: SetHandler perl-script
200: PerlHandler Apache::lonratedt
201: </LocationMatch>
202:
203: <LocationMatch "^/\~.*\.page$">
204: SetHandler perl-script
205: PerlHandler Apache::lonratedt
206: </LocationMatch>
207:
208: <LocationMatch "^/\~.*\/ratserver$">
209: SetHandler perl-script
210: PerlHandler Apache::lonratsrv
211: </LocationMatch>
212:
1.4 www 213: # --------------------------------------------- Resource Space Content Handlers
214:
215: <LocationMatch "^/res/.*/$">
216: SetHandler perl-script
217: PerlHandler Apache::lonindexer
218: </LocationMatch>
219:
220: <LocationMatch "^/res/.*\.tex$">
1.2 www 221: SetHandler perl-script
222: PerlHandler Apache::lontex
1.1 harris41 223: </LocationMatch>
224:
1.4 www 225: <LocationMatch "^/res/.*\.page$>
226: SetHandler perl-script
227: PerlHandler Apache::lonpage
1.10 www 228: </LocationMatch>
229:
230: <LocationMatch "^/res/.*\.sequence$>
231: SetHandler perl-script
232: PerlHandler Apache::lonsequence
1.4 www 233: </LocationMatch>
234:
1.11 www 235: <LocationMatch "^/res/.*\.meta$>
236: SetHandler perl-script
237: PerlHandler Apache::lonmeta
238: </LocationMatch>
239:
1.13 www 240: <LocationMatch "^/res/.*\.(xml|html|htm|xhtml|xhtm)$">
1.4 www 241: SetHandler perl-script
242: PerlHandler Apache::lonxml
243: </LocationMatch>
244:
1.16 www 245: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form)$">
1.4 www 246: SetHandler perl-script
247: PerlHandler Apache::lonhomework
248: </LocationMatch>
1.7 www 249:
1.4 www 250: # -------------------------------------------------------------- Admin Programs
251:
1.1 harris41 252: <Location /adm/roles>
253: PerlAccessHandler Apache::lonacc
254: SetHandler perl-script
255: PerlHandler Apache::lonroles
256: ErrorDocument 403 /adm/login
257: </Location>
258:
259: <Location /adm/login>
260: SetHandler perl-script
261: PerlHandler Apache::lonlogin
1.2 www 262: </Location>
263:
264: <Location /adm/logout>
265: PerlAccessHandler Apache::lonacc
266: SetHandler perl-script
267: PerlHandler Apache::lonlogout
1.8 www 268: ErrorDocument 403 /adm/login
1.1 harris41 269: </Location>
270:
271: <Location /adm/authenticate>
272: SetHandler perl-script
273: PerlHandler Apache::lonauth
274: </Location>
1.4 www 275:
276: <Location /adm/annotations>
1.7 www 277: PerlAccessHandler Apache::lonacc
1.4 www 278: SetHandler perl-script
279: PerlHandler Apache::admannotations
1.12 www 280: ErrorDocument 403 /adm/login
281: </Location>
282:
283: <Location /adm/bookmarks>
284: PerlAccessHandler Apache::lonacc
285: SetHandler perl-script
286: PerlHandler Apache::admbookmarks
1.8 www 287: ErrorDocument 403 /adm/login
1.7 www 288: </Location>
289:
290: <Location /adm/flip>
291: PerlAccessHandler Apache::lonacc
292: SetHandler perl-script
293: PerlHandler Apache::lonpageflip
1.8 www 294: ErrorDocument 406 /adm/roles
1.9 www 295: ErrorDocument 403 /adm/login
296: </Location>
297:
298: <Location /adm/ambiguous>
299: PerlAccessHandler Apache::lonacc
300: SetHandler perl-script
301: PerlHandler Apache::lonambiguous
1.8 www 302: ErrorDocument 403 /adm/login
1.4 www 303: </Location>
1.11 www 304:
1.18 www 305: <LocationMatch "^/adm/email">
1.11 www 306: PerlAccessHandler Apache::lonacc
307: SetHandler perl-script
308: PerlHandler Apache::lonmsg
1.16 www 309: ErrorDocument 403 /adm/login
310: </LocationMatch>
311:
1.18 www 312: <LocationMatch "^/adm/parmset">
1.16 www 313: PerlAccessHandler Apache::lonacc
314: SetHandler perl-script
315: PerlHandler Apache::lonparmset
1.11 www 316: ErrorDocument 403 /adm/login
1.17 www 317: ErrorDocument 406 /adm/roles
1.11 www 318: </LocationMatch>
1.1 harris41 319:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>