Annotation of loncom/access.conf, revision 1.22
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.22 ! www 12: ## 10/3,10/5,10/12,10/16,10/20,11/2,11/6,11/10,11/20,11/23,11/28,12/06,12/19
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:
1.21 www 145: # Key to issue receipts
146:
147: PerlSetVar lonReceipt {[[[[lonReceipt]]]]}
148:
1.1 harris41 149: # ----------------------------------------------------------- Internal Settings
150:
151: PerlSetVar lonIDsDir /home/httpd/lonIDs
152: PerlSetVar lonTabDir /home/httpd/lonTabs
153: PerlSetVar lonUsersDir /home/httpd/lonUsers
154: PerlSetVar lonIconsURL /adm/lonIcons
155: PerlSetVar londPort 5663
156: PerlSetVar lonSysEMail korte@lite.msu.edu
157: PerlSetVar lonDaemons /home/httpd/perl
158: PerlSetVar lonSockDir /home/httpd/sockets
159: PerlSetVar lonDocRoot /home/httpd/html
160: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1.2 www 161: 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 162:
163: # ------------------------------------------------------------ Perl Information
164:
165: PerlRequire conf/startup.pl
166: PerlFreshRestart On
167:
1.4 www 168: # ================================================================= Directories
169:
170: # ------------------------------------------------------------- Access Handlers
1.1 harris41 171:
172: <LocationMatch "^/res.*">
173: PerlAccessHandler Apache::lonacc
174: PerlHeaderParserHandler Apache::lonrep
175: ErrorDocument 403 /adm/login
1.4 www 176: ErrorDocument 404 /adm/notfound.html
1.2 www 177: ErrorDocument 406 /adm/roles
1.19 www 178: </LocationMatch>
179:
180: <LocationMatch "^/priv.*">
181: PerlAccessHandler Apache::loncacc
182: SetHandler perl-script
183: PerlHandler Apache::lonconstruct
184: ErrorDocument 403 /adm/login
185: ErrorDocument 404 /adm/notfound.html
186: ErrorDocument 406 /adm/unauthorized.html
1.1 harris41 187: </LocationMatch>
188:
189: <LocationMatch "^/raw.*">
190: PerlAccessHandler Apache::lonracc
191: </LocationMatch>
192:
193: <LocationMatch "^/\~.*">
194: PerlAccessHandler Apache::loncacc
195: ErrorDocument 403 /adm/login
196: ErrorDocument 404 /adm/notfound.html
197: ErrorDocument 406 /adm/unauthorized.html
198: </LocationMatch>
199:
1.4 www 200: # ------------------------------------------------------------------------- RAT
1.1 harris41 201:
1.2 www 202: <LocationMatch "^/\~.*\.sequence$">
203: SetHandler perl-script
204: PerlHandler Apache::lonratedt
205: </LocationMatch>
206:
207: <LocationMatch "^/\~.*\.page$">
208: SetHandler perl-script
209: PerlHandler Apache::lonratedt
210: </LocationMatch>
211:
212: <LocationMatch "^/\~.*\/ratserver$">
213: SetHandler perl-script
214: PerlHandler Apache::lonratsrv
215: </LocationMatch>
216:
1.4 www 217: # --------------------------------------------- Resource Space Content Handlers
218:
219: <LocationMatch "^/res/.*/$">
220: SetHandler perl-script
221: PerlHandler Apache::lonindexer
222: </LocationMatch>
223:
224: <LocationMatch "^/res/.*\.tex$">
1.2 www 225: SetHandler perl-script
226: PerlHandler Apache::lontex
1.1 harris41 227: </LocationMatch>
228:
1.4 www 229: <LocationMatch "^/res/.*\.page$>
230: SetHandler perl-script
231: PerlHandler Apache::lonpage
1.10 www 232: </LocationMatch>
233:
234: <LocationMatch "^/res/.*\.sequence$>
235: SetHandler perl-script
236: PerlHandler Apache::lonsequence
1.4 www 237: </LocationMatch>
238:
1.11 www 239: <LocationMatch "^/res/.*\.meta$>
240: SetHandler perl-script
241: PerlHandler Apache::lonmeta
242: </LocationMatch>
243:
1.13 www 244: <LocationMatch "^/res/.*\.(xml|html|htm|xhtml|xhtm)$">
1.4 www 245: SetHandler perl-script
246: PerlHandler Apache::lonxml
247: </LocationMatch>
248:
1.16 www 249: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form)$">
1.4 www 250: SetHandler perl-script
251: PerlHandler Apache::lonhomework
1.21 www 252: </LocationMatch>
253:
1.4 www 254: # -------------------------------------------------------------- Admin Programs
255:
1.1 harris41 256: <Location /adm/roles>
257: PerlAccessHandler Apache::lonacc
258: SetHandler perl-script
259: PerlHandler Apache::lonroles
260: ErrorDocument 403 /adm/login
261: </Location>
262:
263: <Location /adm/login>
264: SetHandler perl-script
265: PerlHandler Apache::lonlogin
1.2 www 266: </Location>
267:
268: <Location /adm/logout>
269: PerlAccessHandler Apache::lonacc
270: SetHandler perl-script
271: PerlHandler Apache::lonlogout
1.8 www 272: ErrorDocument 403 /adm/login
1.1 harris41 273: </Location>
274:
275: <Location /adm/authenticate>
276: SetHandler perl-script
277: PerlHandler Apache::lonauth
278: </Location>
1.4 www 279:
280: <Location /adm/annotations>
1.7 www 281: PerlAccessHandler Apache::lonacc
1.4 www 282: SetHandler perl-script
283: PerlHandler Apache::admannotations
1.12 www 284: ErrorDocument 403 /adm/login
285: </Location>
286:
287: <Location /adm/bookmarks>
288: PerlAccessHandler Apache::lonacc
289: SetHandler perl-script
290: PerlHandler Apache::admbookmarks
1.8 www 291: ErrorDocument 403 /adm/login
1.7 www 292: </Location>
293:
294: <Location /adm/flip>
295: PerlAccessHandler Apache::lonacc
296: SetHandler perl-script
297: PerlHandler Apache::lonpageflip
1.8 www 298: ErrorDocument 406 /adm/roles
1.9 www 299: ErrorDocument 403 /adm/login
300: </Location>
301:
302: <Location /adm/ambiguous>
303: PerlAccessHandler Apache::lonacc
304: SetHandler perl-script
305: PerlHandler Apache::lonambiguous
1.8 www 306: ErrorDocument 403 /adm/login
1.4 www 307: </Location>
1.11 www 308:
1.20 www 309: <Location /adm/email>
1.11 www 310: PerlAccessHandler Apache::lonacc
311: SetHandler perl-script
312: PerlHandler Apache::lonmsg
1.16 www 313: ErrorDocument 403 /adm/login
1.20 www 314: </Location>
1.16 www 315:
1.20 www 316: <Location /adm/parmset>
1.16 www 317: PerlAccessHandler Apache::lonacc
318: SetHandler perl-script
319: PerlHandler Apache::lonparmset
1.11 www 320: ErrorDocument 403 /adm/login
1.17 www 321: ErrorDocument 406 /adm/roles
1.20 www 322: </Location>
323:
324: <Location /adm/publish>
325: PerlAccessHandler Apache::lonacc
326: SetHandler perl-script
327: PerlHandler Apache::lonpublisher
328: ErrorDocument 403 /adm/login
329: ErrorDocument 404 /adm/notfound.html
330: ErrorDocument 406 /adm/unauthorized.html
331: </Location>
1.1 harris41 332:
1.22 ! www 333: <Location /adm/assesscalc>
! 334: PerlAccessHandler Apache::lonacc
! 335: SetHandler perl-script
! 336: PerlHandler Apache::lonspreadsheet
! 337: ErrorDocument 403 /adm/login
! 338: ErrorDocument 406 /adm/roles
! 339: </Location>
! 340:
! 341: <Location /adm/studentcalc>
! 342: PerlAccessHandler Apache::lonacc
! 343: SetHandler perl-script
! 344: PerlHandler Apache::lonspreadsheet
! 345: ErrorDocument 403 /adm/login
! 346: ErrorDocument 406 /adm/roles
! 347: </Location>
! 348:
! 349: <Location /adm/classcalc>
! 350: PerlAccessHandler Apache::lonacc
! 351: SetHandler perl-script
! 352: PerlHandler Apache::lonspreadsheet
! 353: ErrorDocument 403 /adm/login
! 354: ErrorDocument 406 /adm/roles
! 355: </Location>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>