Annotation of loncom/loncapa_apache.conf, revision 1.9
1.1 harris41 1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
1.9 ! stredwic 4: ## $Id: loncapa_apache.conf,v 1.8 2002/07/05 18:41:26 harris41 Exp $
1.1 harris41 5: ##
6: ## 1/11/2002 - Scott Harrison
7: ## 2/19/2002 - Scott Harrison
8: ## 2/28/2002 - Scott Harrison
9: ## 3/2/2002 - Scott Harrison
10: ## 5/12/2002 - Scott Harrison
11:
12: #
13: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
14: #
1.8 harris41 15: # ================================================================ DocumentRoot
1.1 harris41 16:
17: DocumentRoot "/home/httpd/html"
18:
19: # ======================================================================== User
20:
21: User www
22: Group www
23:
24: # ======================================================= Shared Object Modules
25:
26: LoadModule perl_module modules/libperl.so
27: AddModule mod_perl.c
28:
29: # =============================================================== Miscellaneous
30:
31: ServerAdmin korte@lite.msu.edu
32: ExtendedStatus On
33:
34: #
35: # LON-CAPA Section (extensions to srm.conf name space servicing)
36: #
37: # ===================================================================== Aliases
38:
39: Alias /prtspool/ /home/httpd/prtspool/
1.8 harris41 40: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
1.1 harris41 41:
42: # ================================================================= Directories
43:
44: # ------------------------------------------------------------- Access Handlers
45:
46: <LocationMatch "^/res.*">
47: PerlAccessHandler Apache::lonacc
48: PerlHeaderParserHandler Apache::lonrep
49: ErrorDocument 403 /adm/login
50: ErrorDocument 404 /adm/notfound.html
51: ErrorDocument 406 /adm/roles
52: ErrorDocument 500 /adm/errorhandler
53: </LocationMatch>
54:
55: <LocationMatch "^/priv.*">
56: PerlAccessHandler Apache::loncacc
57: SetHandler perl-script
58: PerlHandler Apache::lonconstruct
59: ErrorDocument 403 /adm/login
60: ErrorDocument 404 /adm/notfound.html
61: ErrorDocument 406 /adm/unauthorized.html
62: ErrorDocument 500 /adm/errorhandler
63: </LocationMatch>
64:
65: <LocationMatch "^/raw.*">
66: PerlAccessHandler Apache::lonracc
67: </LocationMatch>
68:
69: <LocationMatch "^/\~.*">
70: PerlAccessHandler Apache::loncacc
71: ErrorDocument 403 /adm/login
72: ErrorDocument 404 /adm/notfound.html
73: ErrorDocument 406 /adm/unauthorized.html
74: ErrorDocument 500 /adm/errorhandler
75: AllowOverride None
76: </LocationMatch>
77:
78: # ------------------------------------------------------------------------- RAT
79:
80: <LocationMatch "^/\~.*\.sequence$">
81: SetHandler perl-script
82: PerlHandler Apache::lonratedt
83: </LocationMatch>
84:
85: <LocationMatch "^/\~.*\.page$">
86: SetHandler perl-script
87: PerlHandler Apache::lonratedt
88: </LocationMatch>
89:
90: <LocationMatch "^/\~.*\/ratserver$">
91: SetHandler perl-script
92: PerlHandler Apache::lonratsrv
93: </LocationMatch>
94:
95: <Location /adm/ratparms>
96: PerlAccessHandler Apache::lonacc
97: SetHandler perl-script
98: PerlHandler Apache::lonratparms
99: ErrorDocument 403 /adm/login
100: ErrorDocument 500 /adm/errorhandler
101: </Location>
102:
103: # --------------------------------------------- Resource Space Content Handlers
104:
105: <LocationMatch "^/res.*/$">
106: SetHandler perl-script
107: PerlHandler Apache::lonindexer
108: </LocationMatch>
109:
110: <LocationMatch "^/(res|\~).*\.tex$">
111: SetHandler perl-script
112: PerlHandler Apache::lontex
113: </LocationMatch>
114:
115: <LocationMatch "^/res/.*\.page$>
116: SetHandler perl-script
117: PerlHandler Apache::lonpage
118: </LocationMatch>
119:
120: <LocationMatch "^/res/.*\.sequence$>
121: SetHandler perl-script
122: PerlHandler Apache::lonsequence
123: </LocationMatch>
124:
1.8 harris41 125: <LocationMatch "^/(res|\~).*\.meta$>
1.1 harris41 126: SetHandler perl-script
127: PerlHandler Apache::lonmeta
128: </LocationMatch>
129:
130: <LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$">
131: SetHandler perl-script
132: PerlHandler Apache::lonxml
133: </LocationMatch>
134:
135: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
136: SetHandler perl-script
137: PerlHandler Apache::lonhomework
138: </LocationMatch>
139:
140: <LocationMatch "^/adm/wrapper/">
141: PerlAccessHandler Apache::lonacc
142: SetHandler perl-script
143: PerlHandler Apache::lonwrapper
144: ErrorDocument 403 /adm/login
145: ErrorDocument 500 /adm/errorhandler
146: </LocationMatch>
147:
148: # -------------------------------------------------------------- Admin Programs
149:
150: <Location /adm/statistics>
151: PerlAccessHandler Apache::lonacc
152: SetHandler perl-script
153: PerlHandler Apache::lonstatistics
154: ErrorDocument 403 /adm/login
155: ErrorDocument 500 /adm/errorhandler
156: </Location>
157:
158: <Location /adm/roles>
159: PerlAccessHandler Apache::lonacc
160: SetHandler perl-script
161: PerlHandler Apache::lonroles
162: ErrorDocument 403 /adm/login
163: ErrorDocument 500 /adm/errorhandler
164: </Location>
165:
166: <Location /adm/login>
167: SetHandler perl-script
168: PerlHandler Apache::lonlogin
169: </Location>
170:
171: <Location /adm/logout>
172: PerlAccessHandler Apache::lonacc
173: SetHandler perl-script
174: PerlHandler Apache::lonlogout
175: ErrorDocument 403 /adm/login
176: </Location>
177:
178: <Location /adm/authenticate>
179: SetHandler perl-script
180: PerlHandler Apache::lonauth
181: </Location>
182:
183: <Location /adm/annotations>
184: PerlAccessHandler Apache::lonacc
185: SetHandler perl-script
186: PerlHandler Apache::admannotations
187: ErrorDocument 403 /adm/login
188: ErrorDocument 500 /adm/errorhandler
189: </Location>
190:
191: <Location /adm/bookmarks>
192: PerlAccessHandler Apache::lonacc
193: SetHandler perl-script
194: PerlHandler Apache::admbookmarks
195: ErrorDocument 403 /adm/login
196: ErrorDocument 500 /adm/errorhandler
197: </Location>
198:
199: <Location /adm/flip>
200: PerlAccessHandler Apache::lonacc
201: SetHandler perl-script
202: PerlHandler Apache::lonpageflip
203: ErrorDocument 406 /adm/roles
204: ErrorDocument 403 /adm/login
205: ErrorDocument 500 /adm/errorhandler
206: </Location>
207:
208: <Location /adm/ambiguous>
209: PerlAccessHandler Apache::lonacc
210: SetHandler perl-script
211: PerlHandler Apache::lonambiguous
212: ErrorDocument 403 /adm/login
213: ErrorDocument 500 /adm/errorhandler
214: </Location>
215:
216: <Location /adm/email>
217: PerlAccessHandler Apache::lonacc
218: SetHandler perl-script
219: PerlHandler Apache::lonmsg
220: ErrorDocument 403 /adm/login
221: ErrorDocument 500 /adm/errorhandler
222: </Location>
223:
224: <Location /adm/parmset>
225: PerlAccessHandler Apache::lonacc
226: SetHandler perl-script
227: PerlHandler Apache::lonparmset
228: ErrorDocument 403 /adm/login
229: ErrorDocument 406 /adm/roles
230: ErrorDocument 500 /adm/errorhandler
231: </Location>
232:
233: <Location /adm/grades>
234: PerlAccessHandler Apache::lonacc
235: SetHandler perl-script
236: PerlHandler Apache::grades
237: ErrorDocument 403 /adm/login
238: ErrorDocument 406 /adm/roles
239: ErrorDocument 500 /adm/errorhandler
240: </Location>
241:
242: <Location /adm/createcourse>
243: PerlAccessHandler Apache::lonacc
244: SetHandler perl-script
245: PerlHandler Apache::loncreatecourse
246: ErrorDocument 403 /adm/login
247: ErrorDocument 406 /adm/roles
248: ErrorDocument 500 /adm/errorhandler
249: </Location>
250:
251: <Location /adm/createuser>
252: PerlAccessHandler Apache::lonacc
253: SetHandler perl-script
254: PerlHandler Apache::loncreateuser
255: ErrorDocument 403 /adm/login
256: ErrorDocument 406 /adm/roles
257: ErrorDocument 500 /adm/errorhandler
258: </Location>
259:
260: <Location /adm/publish>
261: PerlAccessHandler Apache::lonacc
262: SetHandler perl-script
263: PerlHandler Apache::lonpublisher
264: ErrorDocument 403 /adm/login
265: ErrorDocument 404 /adm/notfound.html
266: ErrorDocument 406 /adm/unauthorized.html
267: ErrorDocument 500 /adm/errorhandler
268: </Location>
269:
270: <LocationMatch "^/\~.*/$">
271: PerlAccessHandler Apache::loncacc
272: SetHandler perl-script
273: PerlHandler Apache::lonpubdir
274: ErrorDocument 403 /adm/login
275: ErrorDocument 404 /adm/notfound.html
276: ErrorDocument 406 /adm/unauthorized.html
277: ErrorDocument 500 /adm/errorhandler
278: </LocationMatch>
279:
280: <Location /adm/pubdir>
281: PerlAccessHandler Apache::lonacc
282: SetHandler perl-script
283: PerlHandler Apache::lonpubdir
284: ErrorDocument 403 /adm/login
285: ErrorDocument 404 /adm/notfound.html
286: ErrorDocument 406 /adm/unauthorized.html
287: ErrorDocument 500 /adm/errorhandler
288: </Location>
289:
290: <Location /adm/retrieve>
291: PerlAccessHandler Apache::lonacc
292: SetHandler perl-script
293: PerlHandler Apache::lonretrieve
294: ErrorDocument 403 /adm/login
295: ErrorDocument 404 /adm/notfound.html
296: ErrorDocument 406 /adm/unauthorized.html
297: ErrorDocument 500 /adm/errorhandler
298: </Location>
299:
300: <Location /adm/cfile>
301: PerlAccessHandler Apache::lonacc
302: SetHandler perl-script
303: PerlHandler Apache::loncfile
304: ErrorDocument 403 /adm/login
305: ErrorDocument 404 /adm/notfound.html
306: ErrorDocument 406 /adm/unauthorized.html
307: ErrorDocument 500 /adm/errorhandler
308: </Location>
309:
310: <Location /adm/diff>
311: PerlAccessHandler Apache::lonacc
312: SetHandler perl-script
313: PerlHandler Apache::londiff
314: ErrorDocument 403 /adm/login
315: ErrorDocument 404 /adm/notfound.html
316: ErrorDocument 406 /adm/unauthorized.html
317: ErrorDocument 500 /adm/errorhandler
318: </Location>
319:
320: <Location /adm/upload>
321: PerlAccessHandler Apache::lonacc
322: SetHandler perl-script
323: PerlHandler Apache::lonupload
324: ErrorDocument 403 /adm/login
325: ErrorDocument 404 /adm/notfound.html
326: ErrorDocument 406 /adm/unauthorized.html
327: ErrorDocument 500 /adm/errorhandler
328: </Location>
329:
330: <Location /adm/assesscalc>
331: PerlAccessHandler Apache::lonacc
332: SetHandler perl-script
333: PerlHandler Apache::lonspreadsheet
334: ErrorDocument 403 /adm/login
335: ErrorDocument 406 /adm/roles
336: ErrorDocument 500 /adm/errorhandler
337: </Location>
338:
339: <Location /adm/studentcalc>
340: PerlAccessHandler Apache::lonacc
341: SetHandler perl-script
342: PerlHandler Apache::lonspreadsheet
343: ErrorDocument 403 /adm/login
344: ErrorDocument 406 /adm/roles
345: ErrorDocument 500 /adm/errorhandler
346: </Location>
347:
348: <Location /adm/classcalc>
349: PerlAccessHandler Apache::lonacc
350: SetHandler perl-script
351: PerlHandler Apache::lonspreadsheet
352: ErrorDocument 403 /adm/login
353: ErrorDocument 406 /adm/roles
354: ErrorDocument 500 /adm/errorhandler
355: </Location>
356:
357: <Location /adm/dropadd>
358: PerlAccessHandler Apache::lonacc
359: SetHandler perl-script
360: PerlHandler Apache::londropadd
361: ErrorDocument 403 /adm/login
362: ErrorDocument 406 /adm/roles
363: ErrorDocument 500 /adm/errorhandler
364: </Location>
365:
366: <Location /adm/printout>
367: PerlAccessHandler Apache::lonacc
368: SetHandler perl-script
369: PerlHandler Apache::lonprintout
370: ErrorDocument 403 /adm/login
371: ErrorDocument 500 /adm/errorhandler
372: </Location>
373:
374: <Location /adm/feedback>
375: PerlAccessHandler Apache::lonacc
376: SetHandler perl-script
377: PerlHandler Apache::lonfeedback
378: ErrorDocument 403 /adm/login
379: ErrorDocument 500 /adm/errorhandler
380: </Location>
381:
382: <Location /adm/evaluate>
383: PerlAccessHandler Apache::lonacc
384: SetHandler perl-script
385: PerlHandler Apache::lonevaluate
386: ErrorDocument 403 /adm/login
387: ErrorDocument 500 /adm/errorhandler
388: </Location>
389:
390: <Location /adm/preferences>
391: PerlAccessHandler Apache::lonacc
392: SetHandler perl-script
393: PerlHandler Apache::lonpreferences
394: ErrorDocument 403 /adm/login
395: ErrorDocument 500 /adm/errorhandler
396: </Location>
397:
398: <Location /adm/assignments>
399: PerlAccessHandler Apache::lonacc
400: SetHandler perl-script
401: PerlHandler Apache::lonassignments
402: ErrorDocument 403 /adm/login
403: ErrorDocument 406 /adm/roles
404: ErrorDocument 500 /adm/errorhandler
405: </Location>
406:
407: <Location /adm/communicate>
408: PerlAccessHandler Apache::lonacc
409: SetHandler perl-script
410: PerlHandler Apache::loncommunicate
411: ErrorDocument 403 /adm/login
412: ErrorDocument 500 /adm/errorhandler
413: </Location>
414:
415: <Location /adm/searchcat>
416: PerlAccessHandler Apache::lonacc
417: SetHandler perl-script
418: PerlHandler Apache::lonsearchcat
419: ErrorDocument 403 /adm/login
420: ErrorDocument 500 /adm/errorhandler
421: </Location>
422:
423: <Location /adm/navmaps>
424: PerlAccessHandler Apache::lonacc
425: SetHandler perl-script
426: PerlHandler Apache::lonnavmaps
427: ErrorDocument 403 /adm/login
428: ErrorDocument 406 /adm/roles
429: ErrorDocument 500 /adm/errorhandler
430: </Location>
431:
432: <Location /adm/groupsort>
433: PerlAccessHandler Apache::lonacc
434: SetHandler perl-script
435: PerlHandler Apache::groupsort
436: ErrorDocument 403 /adm/login
437: ErrorDocument 500 /adm/errorhandler
438: </Location>
439:
440: <Location /adm/errorhandler>
441: SetHandler perl-script
442: PerlHandler Apache::lonerrorhandler
443: </Location>
444:
1.7 bowersj2 445: <LocationMatch "^/adm/help/.*\.hlp$">
446: SetHandler perl-script
447: PerlHandler Apache::lonhelp
448: </LocationMatch>
449:
1.1 harris41 450: # ------------------------------------------------- Backdoor Adm Tests/Programs
451:
452: <Location /cgi-bin/loncron.pl>
453: AuthName "LON-CAPA Network Administration"
454: AuthType Basic
455: AuthUserFile /home/httpd/lonTabs/htpasswd
456: require user lonadm
457: </Location>
458:
459: <Location /cgi-bin/lonversions.pl>
460: AuthName "LON-CAPA Network Administration"
461: AuthType Basic
462: AuthUserFile /home/httpd/lonTabs/htpasswd
463: require user lonadm
464: </Location>
465:
466: <Location /cgi-bin/clusterstatus.pl>
467: AuthName "LON-CAPA Network Administration"
468: AuthType Basic
469: AuthUserFile /home/httpd/lonTabs/htpasswd
470: require user lonadm
471: </Location>
472:
473: <Location /cgi-bin/metadata_keywords.pl>
474: AuthName "LON-CAPA Network Administration"
475: AuthType Basic
476: AuthUserFile /home/httpd/lonTabs/htpasswd
477: require user lonadm
478: </Location>
479:
480: <Location /adm/test>
481: AuthName "LON-CAPA Network Administration"
482: AuthType Basic
483: AuthUserFile /home/httpd/lonTabs/htpasswd
484: require user lonadm
485: SetHandler perl-script
486: PerlAccessHandler Apache::lonacc
487: PerlHandler Apache::lontest
488: </Location>
489:
490: # ------------------------------------------------------- Shutting down a child
491:
492: PerlChildExitHandler Apache::lonnet::goodbye
493:
494: #
495: # LON-CAPA Section (extensions to access.conf permission configuration)
496: #
497: # =========================================================== Directory Options
498:
499: # Start out with "no"
500:
501: <Directory />
502: Options None
503: AllowOverride None
504: </Directory>
505:
506: # Yes to symbolic links and server-side includes
507:
508: <Directory /home/httpd/html>
509: Options Includes FollowSymLinks
510: AllowOverride None
511: order allow,deny
512: allow from all
513: </Directory>
514:
515: # If it is in cgi-bin, then it can be executed as a CGI script.
516:
517: <Directory /home/httpd/cgi-bin>
518: AllowOverride None
519: Options ExecCGI
520: </Directory>
521:
522: # ============================================================= Access Handlers
523:
524: # ------------------------------------------------- Allow server-status reports
525: <Location /server-status>
526: SetHandler server-status
527: AuthName "LON-CAPA Network Administration"
528: AuthType Basic
529: AuthUserFile /home/httpd/lonTabs/htpasswd
530: require user lonadm
531: </Location>
532:
533: # ------------------------ Allow LON-CAPA "low-level" connection status reports
534: <Location /lon-status>
535: AuthName "LON-CAPA Network Administration"
536: AuthType Basic
537: AuthUserFile /home/httpd/lonTabs/htpasswd
538: require user lonadm
539: </Location>
540:
541: # ------------------- Allow access to local system documentation from localhost
542: Alias /doc /usr/doc
543: <Directory /usr/doc>
544: order deny,allow
545: deny from all
546: allow from localhost
547: Options Indexes FollowSymLinks
548: </Directory>
549:
550: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
551: # ====================================== Internal Settings / Perl Configuration
552:
553: PerlSetVar lonIDsDir /home/httpd/lonIDs
554: PerlSetVar lonTabDir /home/httpd/lonTabs
555: PerlSetVar lonUsersDir /home/httpd/lonUsers
556: PerlSetVar lonIconsURL /adm/lonIcons
557: PerlSetVar londPort 5663
558: PerlSetVar lonSysEMail korte@lite.msu.edu
559: PerlSetVar lonDaemons /home/httpd/perl
560: PerlSetVar lonSockDir /home/httpd/sockets
561: PerlSetVar lonDocRoot /home/httpd/html
562: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
563: PerlSetVar lonBrowsDet netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999&amaya:amaya:mozilla:V(\d+\.\d+)\s:1
1.2 harris41 564:
565: # -----------------------------------------------------------------------------
566: # NOTE: lonSqlAccess key is the password for the MySQL user
567: # www@localhost. This value must always be "localhostkey".
568: # The only security risk occurs when somebody logs in as 'www' on your system
569: # (in which case you have much bigger problems than whether or not they
570: # can access the non-authoritative loncapa database on your machine).
571:
572: PerlSetVar lonSqlAccess localhostkey
573:
574: # -----------------------------------------------------------------------------
575:
576:
1.8 harris41 577: # ====================================== Include machine-specific configuration
1.2 harris41 578:
579: Include conf/loncapa.conf
1.1 harris41 580:
581: # ================================================== Initiate mod_perl starting
582:
583: PerlRequire conf/startup.pl
584: PerlFreshRestart On
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>