1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4: ## $Id: loncapa_apache.conf,v 1.212 2012/03/05 20:51:25 raeburn Exp $
5: ##
6:
7: #
8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
9: #
10: # ================================================================ DocumentRoot
11:
12: DocumentRoot "/home/httpd/html"
13:
14: # ======================================================================== User
15:
16: User www
17: Group www
18:
19: # ======================================================= Shared Object Modules
20:
21: LoadModule perl_module modules/libperl.so
22: <IfDefine !MODPERL2>
23: AddModule mod_perl.c
24: </IfDefine>
25:
26: <IfDefine MODPERL2>
27: PerlSetVar MODPERL2 1
28: </IfDefine>
29: # =============================================================== Miscellaneous
30:
31: ServerAdmin korte@lite.msu.edu
32: ExtendedStatus On
33: #
34: # LON-CAPA Section (extensions to srm.conf name space servicing)
35: #
36: # ===================================================================== Aliases
37:
38: Alias /zipspool/ /home/httpd/zipspool/
39: Alias /prtspool/ /home/httpd/prtspool/
40: Alias /captchaspool/ /home/httpd/captchaspool/
41: Alias /webdav/ /home/httpd/html/priv/
42: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
43: DAVLockDB /home/httpd/webdav/DAVLock
44:
45: # ================================================================= Directories
46:
47: # ------------------------------------------------------------- Access Handlers
48:
49: PerlTransHandler Apache::lontrans
50: PerlCleanupHandler Apache::lonacc::cleanup
51:
52: PerlAuthenHandler Apache::checkauthen
53: PerlSetVar lonOtherAuthen no
54:
55: <IfModule mod_shib>
56: PerlAuthenHandler Apache::lonshibauth
57: PerlSetVar lonOtherAuthen yes
58: PerlSetVar lonOtherAuthenType Shibboleth
59: </IfModule>
60:
61: #PerlWarn On
62: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
63: PerlAuthenHandler 'sub { return OK }'
64: </LocationMatch>
65:
66: # Send proper expires header to avoid unnecessary HTTP request for static content
67: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/ckeditor)">
68: ExpiresActive On
69: ExpiresDefault "access plus 12 hours"
70: Header set Cache-Control "public, no-transform"
71: </LocationMatch>
72:
73: <LocationMatch "^/+res.*">
74:
75: AuthType LONCAPA
76: Require valid-user
77:
78: PerlAccessHandler Apache::publiccheck
79: PerlAuthzHandler Apache::lonacc
80: PerlHeaderParserHandler Apache::lonrep
81: ErrorDocument 403 /adm/login
82: ErrorDocument 404 /adm/notfound.html
83: ErrorDocument 406 /adm/roles
84: ErrorDocument 500 /adm/errorhandler
85: </LocationMatch>
86:
87:
88: <LocationMatch "/.*">
89: </LocationMatch>
90:
91:
92: <LocationMatch "^/+enc.*">
93: SetHandler perl-script
94: PerlHandler Apache::lonencurl
95: ErrorDocument 403 /adm/login
96: ErrorDocument 404 /adm/notfound.html
97: ErrorDocument 406 /adm/roles
98: ErrorDocument 500 /adm/errorhandler
99: </LocationMatch>
100:
101: <Location /adm/portfolio>
102: AuthType LONCAPA
103: Require valid-user
104: PerlAuthzHandler Apache::lonacc
105: SetHandler perl-script
106: PerlHandler Apache::portfolio
107: </Location>
108:
109: <Location /adm/coursegrp_portfolio>
110: AuthType LONCAPA
111: Require valid-user
112: PerlAuthzHandler Apache::lonacc
113: SetHandler perl-script
114: PerlHandler Apache::portfolio
115: </Location>
116:
117: <Location /adm/pdfupload>
118: AuthType LONCAPA
119: Require valid-user
120: PerlAuthzHandler Apache::lonacc
121: SetHandler perl-script
122: PerlHandler Apache::lonpdfupload
123: ErrorDocument 403 /adm/login
124: ErrorDocument 404 /adm/notfound.html
125: ErrorDocument 406 /adm/roles
126: ErrorDocument 500 /adm/errorhandler
127: </Location>
128:
129: <LocationMatch "^/+userfiles.*">
130: PerlAccessHandler Apache::lontokacc
131: PerlCleanupHandler Apache::lontokacc::removefile
132: PerlCleanupHandler Apache::lonacc::cleanup
133: </LocationMatch>
134:
135: <LocationMatch "^/+uploaded.*">
136: AuthType LONCAPA
137: Require valid-user
138: PerlAuthzHandler Apache::lonacc
139: PerlHandler Apache::londatecheck
140: PerlHandler Apache::lonipcheck
141: PerlHeaderParserHandler Apache::lonuploadrep
142: ErrorDocument 403 /adm/login
143: ErrorDocument 404 /adm/notfound.html
144: ErrorDocument 406 /adm/roles
145: ErrorDocument 500 /adm/errorhandler
146: </LocationMatch>
147:
148: <LocationMatch "^/+editupload.*">
149: AuthType LONCAPA
150: Require valid-user
151: PerlAuthzHandler Apache::lonacc
152: ErrorDocument 403 /adm/login
153: ErrorDocument 406 /adm/roles
154: ErrorDocument 500 /adm/errorhandler
155: </LocationMatch>
156:
157: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
158: PerlAuthenHandler Apache::lonuploadedacc
159: PerlAuthzHandler Apache::lonuploadedacc::skip_phase
160: PerlAccessHandler Apache::lonuploadedacc::skip_phase
161: </LocationMatch>
162:
163: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
164: PerlAccessHandler Apache::publiccheck
165: AuthType LONCAPA
166: Require valid-user
167: PerlAuthzHandler Apache::lonacc
168: </LocationMatch>
169:
170: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
171: PerlAccessHandler Apache::publiccheck
172: AuthType LONCAPA
173: Require valid-user
174: PerlAuthzHandler Apache::lonacc
175: </LocationMatch>
176:
177: <LocationMatch "^/+uploaded/.*\.page$">
178: SetHandler perl-script
179: PerlHandler Apache::lonpage
180: </LocationMatch>
181:
182: <LocationMatch "^/+uploaded/.*\.sequence$">
183: SetHandler perl-script
184: PerlHandler Apache::lonsequence
185: </LocationMatch>
186:
187: <LocationMatch "^/+public/.*/syllabus$">
188: PerlAccessHandler Apache::publiccheck
189: AuthType LONCAPA
190: Require valid-user
191: PerlAuthzHandler Apache::lonacc
192: SetHandler perl-script
193: PerlHandler Apache::lonsyllabus
194: ErrorDocument 404 /adm/notfound.html
195: ErrorDocument 500 /adm/errorhandler
196: </LocationMatch>
197:
198: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
199: PerlAccessHandler Apache::publiccheck
200: AuthType LONCAPA
201: Require valid-user
202: PerlAuthzHandler Apache::lonacc
203: SetHandler perl-script
204: PerlHandler Apache::lonrss
205: ErrorDocument 404 /adm/notfound.html
206: ErrorDocument 500 /adm/errorhandler
207: </LocationMatch>
208:
209: <LocationMatch "^/adm/.*/aboutme$">
210: AuthType LONCAPA
211: Require valid-user
212: PerlAuthzHandler Apache::lonacc
213: SetHandler perl-script
214: PerlHandler Apache::lonaboutme
215: ErrorDocument 404 /adm/notfound.html
216: ErrorDocument 406 /adm/notinit.html
217: ErrorDocument 500 /adm/errorhandler
218: </LocationMatch>
219:
220: <LocationMatch "^/adm/.*/aboutme/portfolio$">
221: PerlAccessHandler Apache::publiccheck
222: AuthType LONCAPA
223: Require valid-user
224: PerlAuthzHandler Apache::lonacc
225: SetHandler perl-script
226: PerlHandler Apache::lonaboutme
227: ErrorDocument 404 /adm/notfound.html
228: ErrorDocument 406 /adm/notinit.html
229: ErrorDocument 500 /adm/errorhandler
230: </LocationMatch>
231:
232: <LocationMatch "^/adm/.*/smppg$">
233: AuthType LONCAPA
234: Require valid-user
235: PerlAuthzHandler Apache::lonacc
236: SetHandler perl-script
237: PerlHandler Apache::londatecheck
238: PerlHandler Apache::lonipcheck
239: PerlHandler Apache::lonsimplepage
240: ErrorDocument 404 /adm/notfound.html
241: ErrorDocument 406 /adm/notinit.html
242: ErrorDocument 500 /adm/errorhandler
243: </LocationMatch>
244:
245: <LocationMatch "^/adm/.*/bulletinboard$">
246: AuthType LONCAPA
247: Require valid-user
248: PerlAuthzHandler Apache::lonacc
249: SetHandler perl-script
250: PerlHandler Apache::londatecheck
251: PerlHandler Apache::lonipcheck
252: PerlHandler Apache::lonbulletin
253: ErrorDocument 404 /adm/notfound.html
254: ErrorDocument 406 /adm/notinit.html
255: ErrorDocument 500 /adm/errorhandler
256: </LocationMatch>
257:
258: <LocationMatch "\.problem/smpedit$">
259: AuthType LONCAPA
260: Require valid-user
261: PerlAuthzHandler Apache::lonacc
262: SetHandler perl-script
263: PerlHandler Apache::lonsimpleproblemedit
264: ErrorDocument 404 /adm/notfound.html
265: ErrorDocument 406 /adm/notinit.html
266: ErrorDocument 500 /adm/errorhandler
267: </LocationMatch>
268:
269: <LocationMatch "^/+priv/.*">
270: AuthType LONCAPA
271: Require valid-user
272: PerlAuthzHandler Apache::loncacc
273: SetHandler perl-script
274: ErrorDocument 403 /adm/login
275: ErrorDocument 404 /adm/notfound.html
276: ErrorDocument 406 /adm/unauthorized
277: ErrorDocument 500 /adm/errorhandler
278: </LocationMatch>
279:
280: <LocationMatch "^/+webdav/[\w\-]+/[\w\-]+/">
281: <IfModule mod_ssl.c>
282: AuthType Basic
283: AuthName "LONCAPA username,domain"
284: Require valid-user
285: SSLRequireSSL
286: PerlAuthenHandler Apache::lonwebdavauth
287: PerlAuthzHandler Apache::lonwebdavacc
288: Dav On
289: DirectoryIndex index.missing
290: Options Indexes FollowSymLinks
291: ErrorDocument 403 /adm/nowebdav.html
292: ErrorDocument 404 /adm/notfound.html
293: ErrorDocument 406 /adm/unauthorized
294: ErrorDocument 500 /adm/errorhandler
295: </IfModule>
296: <IfModule !mod_ssl.c>
297: <IfModule mod_rewrite.c>
298: RewriteEngine on
299: RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
300: </IfModule>
301: </IfModule>
302: </LocationMatch>
303:
304: <LocationMatch "^/+raw.*">
305: PerlAccessHandler Apache::lonracc
306: </LocationMatch>
307:
308: <LocationMatch "^/adm/helper/.*\.helper$">
309: AuthType LONCAPA
310: Require valid-user
311: PerlAuthzHandler Apache::lonacc
312: SetHandler perl-script
313: PerlHandler Apache::lonhelper
314: ErrorDocument 403 /adm/login
315: ErrorDocument 404 /adm/notfound.html
316: ErrorDocument 406 /adm/unauthorized
317: ErrorDocument 500 /adm/errorhandler
318: </LocationMatch>
319:
320: <LocationMatch "/prtspool">
321: AuthType LONCAPA
322: Require valid-user
323: PerlAuthzHandler Apache::lonacc
324: ErrorDocument 403 /adm/login
325: ErrorDocument 404 /adm/notfound.html
326: ErrorDocument 406 /adm/roles
327: ErrorDocument 413 /adm/overloaded.txt
328: ErrorDocument 500 /adm/errorhandler
329: </LocationMatch>
330:
331: <LocationMatch "/zipspool">
332: AuthType LONCAPA
333: Require valid-user
334: PerlAuthzHandler Apache::lonacc
335: ErrorDocument 403 /adm/login
336: ErrorDocument 404 /adm/notfound.html
337: ErrorDocument 406 /adm/roles
338: ErrorDocument 413 /adm/overloaded.txt
339: ErrorDocument 500 /adm/errorhandler
340: </LocationMatch>
341: # ------------------------------------------------------------------------- RAT
342:
343: <LocationMatch "^/+priv/.*\.sequence$">
344: SetHandler perl-script
345: PerlHandler Apache::lonratedt
346: </LocationMatch>
347:
348: <LocationMatch "^/+priv/.*\.page$">
349: SetHandler perl-script
350: PerlHandler Apache::lonratedt
351: </LocationMatch>
352:
353: <LocationMatch "^/+priv/.*\/ratserver$">
354: SetHandler perl-script
355: PerlHandler Apache::lonratsrv
356: </LocationMatch>
357:
358: <LocationMatch "^/+priv/.*\/adveditmenu$">
359: SetHandler perl-script
360: PerlHandler Apache::lonratmenu
361: </LocationMatch>
362:
363: <Location /adm/ratparms>
364: AuthType LONCAPA
365: Require valid-user
366: PerlAuthzHandler Apache::lonacc
367: SetHandler perl-script
368: PerlHandler Apache::lonratparms
369: ErrorDocument 403 /adm/login
370: ErrorDocument 500 /adm/errorhandler
371: </Location>
372:
373: # --------------------------------------------- Resource Space Content Handlers
374:
375: <LocationMatch "^/+res.*/$">
376: SetHandler perl-script
377: PerlHandler Apache::lonindexer
378: PerlCleanupHandler Apache::lonindexer::cleanup
379: PerlCleanupHandler Apache::lonacc::cleanup
380: </LocationMatch>
381:
382: <LocationMatch "^/+res.*\.tex$">
383: SetHandler perl-script
384: PerlHandler Apache::lontex
385: </LocationMatch>
386:
387: <LocationMatch "^/+res/.*\.page$">
388: SetHandler perl-script
389: PerlHandler Apache::lonpage
390: </LocationMatch>
391:
392: <LocationMatch "^/+res/.*\.sequence$">
393: SetHandler perl-script
394: PerlHandler Apache::lonsequence
395: </LocationMatch>
396:
397: <LocationMatch "^/+(res|priv|public|uploaded|editupload|adm)/.*\.meta$">
398: PerlAccessHandler Apache::publiccheck
399: SetHandler perl-script
400: PerlHandler Apache::lonmeta
401: ErrorDocument 413 /adm/overloaded.txt
402: </LocationMatch>
403:
404: <LocationMatch "^/adm/bombs/">
405: AuthType LONCAPA
406: Require valid-user
407: SetHandler perl-script
408: PerlAuthzHandler Apache::lonacc
409: PerlHandler Apache::lonmeta
410: </LocationMatch>
411:
412:
413:
414: <LocationMatch "^/+(res|priv)/.*\.rights$">
415: SetHandler perl-script
416: PerlHandler Apache::lonrights
417: </LocationMatch>
418:
419: <LocationMatch "^/+(uploaded|res|priv)/.*\.(xml|html|htm|xhtml|xhtm|sty)$">
420: SetHandler perl-script
421: PerlHandler Apache::londatecheck
422: PerlHandler Apache::lonipcheck
423: PerlHandler Apache::lonxml
424: </LocationMatch>
425:
426: <LocationMatch "^/+(res|priv).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
427: SetHandler perl-script
428: PerlHandler Apache::lonhomework
429: </LocationMatch>
430:
431: <LocationMatch "^/+priv/.*\.(js|css|txt|tex)$">
432: SetHandler perl-script
433: PerlHandler Apache::lonxml
434: </LocationMatch>
435:
436: <LocationMatch "^/adm/wrapper/">
437: AuthType LONCAPA
438: Require valid-user
439: PerlAuthzHandler Apache::lonacc
440: PerlHandler Apache::londatecheck
441: PerlHandler Apache::lonipcheck
442: SetHandler perl-script
443: PerlHandler Apache::lonwrapper
444: ErrorDocument 403 /adm/login
445: ErrorDocument 500 /adm/errorhandler
446: </LocationMatch>
447:
448: <LocationMatch "^/adm/source">
449: AuthType LONCAPA
450: Require valid-user
451: PerlAuthzHandler Apache::lonacc
452: SetHandler perl-script
453: PerlHandler Apache::lonsource
454: ErrorDocument 403 /adm/login
455: ErrorDocument 406 /adm/roles
456: ErrorDocument 500 /adm/errorhandler
457: </LocationMatch>
458:
459:
460: <LocationMatch "^/adm/localize/">
461: AuthType LONCAPA
462: Require valid-user
463: PerlAuthzHandler Apache::lonacc
464: SetHandler perl-script
465: PerlHandler Apache::lonlocalize
466: ErrorDocument 403 /adm/login
467: ErrorDocument 500 /adm/errorhandler
468: </LocationMatch>
469:
470: # -------------------------------------------------------------- Admin Programs
471:
472: <Location /adm/randomlabel.png>
473: AuthType LONCAPA
474: Require valid-user
475: PerlAuthzHandler Apache::lonacc
476: SetHandler perl-script
477: PerlHandler Apache::randomlylabel
478: ErrorDocument 403 /adm/login
479: ErrorDocument 500 /adm/errorhandler
480: </Location>
481:
482: <Location /adm/imagechoice>
483: AuthType LONCAPA
484: Require valid-user
485: PerlAuthzHandler Apache::lonacc
486: SetHandler perl-script
487: PerlHandler Apache::imagechoice
488: ErrorDocument 403 /adm/login
489: ErrorDocument 500 /adm/errorhandler
490: </Location>
491:
492: <Location /adm/searchcourse>
493: AuthType LONCAPA
494: Require valid-user
495: PerlAuthzHandler Apache::lonacc
496: SetHandler perl-script
497: PerlHandler Apache::lonsearchcourse
498: ErrorDocument 403 /adm/login
499: ErrorDocument 500 /adm/errorhandler
500: </Location>
501:
502: <Location /adm/indexcourse>
503: AuthType LONCAPA
504: Require valid-user
505: PerlAuthzHandler Apache::lonacc
506: SetHandler perl-script
507: PerlHandler Apache::lonindexcourse
508: ErrorDocument 403 /adm/login
509: ErrorDocument 500 /adm/errorhandler
510: </Location>
511:
512: <Location /adm/statistics>
513: AuthType LONCAPA
514: Require valid-user
515: PerlAuthzHandler Apache::lonacc
516: SetHandler perl-script
517: PerlHandler Apache::lonstatistics
518: ErrorDocument 403 /adm/login
519: ErrorDocument 413 /adm/overloaded.txt
520: ErrorDocument 500 /adm/errorhandler
521: </Location>
522:
523: <Location /adm/trackstudent>
524: AuthType LONCAPA
525: Require valid-user
526: PerlAuthzHandler Apache::lonacc
527: SetHandler perl-script
528: PerlHandler Apache::lontrackstudent
529: ErrorDocument 403 /adm/login
530: ErrorDocument 413 /adm/overloaded.txt
531: ErrorDocument 500 /adm/errorhandler
532: </Location>
533:
534: <Location /adm/roles>
535: AuthType LONCAPA
536: Require valid-user
537: PerlAuthzHandler Apache::lonacc
538: SetHandler perl-script
539: PerlHandler Apache::lonroles
540: ErrorDocument 403 /adm/login
541: ErrorDocument 409 /adm/preferences?action=lockwarning
542: ErrorDocument 500 /adm/errorhandler
543: </Location>
544:
545: <Location /adm/menu>
546: AuthType LONCAPA
547: Require valid-user
548: PerlAuthzHandler Apache::lonacc
549: SetHandler perl-script
550: PerlHandler Apache::lonmainmenu
551: ErrorDocument 403 /adm/login
552: ErrorDocument 500 /adm/errorhandler
553: </Location>
554:
555: <Location /adm/pickresource>
556: AuthType LONCAPA
557: Require valid-user
558: PerlAuthzHandler Apache::lonacc
559: SetHandler perl-script
560: PerlHandler Apache::lonpickresource
561: ErrorDocument 403 /adm/login
562: ErrorDocument 500 /adm/errorhandler
563: </Location>
564:
565: <Location /adm/pickauthor>
566: AuthType LONCAPA
567: Require valid-user
568: PerlAuthzHandler Apache::lonacc
569: SetHandler perl-script
570: PerlHandler Apache::lonpickauthor
571: ErrorDocument 403 /adm/login
572: ErrorDocument 500 /adm/errorhandler
573: </Location>
574:
575: <Location /adm/pickstudent>
576: AuthType LONCAPA
577: Require valid-user
578: PerlAuthzHandler Apache::lonacc
579: SetHandler perl-script
580: PerlHandler Apache::lonpickstudent
581: ErrorDocument 403 /adm/login
582: ErrorDocument 500 /adm/errorhandler
583: </Location>
584:
585: <Location /adm/pickuser>
586: AuthType LONCAPA
587: Require valid-user
588: PerlAuthzHandler Apache::lonacc
589: SetHandler perl-script
590: PerlHandler Apache::lonpickuser
591: ErrorDocument 403 /adm/login
592: ErrorDocument 406 /adm/roles
593: ErrorDocument 500 /adm/errorhandler
594: </Location>
595:
596: <Location /adm/pickcourse>
597: AuthType LONCAPA
598: Require valid-user
599: PerlAuthzHandler Apache::lonacc
600: SetHandler perl-script
601: PerlHandler Apache::lonpickcourse
602: ErrorDocument 403 /adm/login
603: ErrorDocument 500 /adm/errorhandler
604: </Location>
605:
606: <Location /adm/pickcode>
607: AuthType LONCAPA
608: Require valid-user
609: PerlAuthzHandler Apache::lonacc
610: SetHandler perl-script
611: PerlHandler Apache::lonpickcode
612: ErrorDocument 403 /adm/login
613: ErrorDocument 500 /adm/errorhandler
614: </Location>
615:
616: <Location /adm/login>
617: SetHandler perl-script
618: PerlHandler Apache::lonlogin
619: </Location>
620:
621: <Location /adm/restrictedaccess>
622: PerlAccessHandler Apache::publiccheck
623: AuthType LONCAPA
624: Require valid-user
625: SetHandler perl-script
626: PerlAuthzHandler Apache::lonacc
627: PerlHandler Apache::restrictedaccess
628: ErrorDocument 500 /adm/errorhandler
629: </Location>
630:
631: <Location /adm/blockedaccess>
632: PerlAccessHandler Apache::publiccheck
633: AuthType LONCAPA
634: Require valid-user
635: SetHandler perl-script
636: PerlAuthzHandler Apache::lonacc
637: PerlHandler Apache::blockedaccess
638: ErrorDocument 500 /adm/errorhandler
639: </Location>
640:
641: <Location /adm/logout>
642: AuthType LONCAPA
643: Require valid-user
644: PerlAuthzHandler Apache::lonacc
645: SetHandler perl-script
646: PerlHandler Apache::lonlogout
647: ErrorDocument 403 /adm/login
648: ErrorDocument 409 /adm/preferences?action=lockwarning
649: ErrorDocument 500 /adm/errorhandler
650: </Location>
651:
652: <Location /adm/switchserver>
653: AuthType LONCAPA
654: Require valid-user
655: PerlAuthzHandler Apache::lonacc
656: SetHandler perl-script
657: PerlHandler Apache::switchserver
658: ErrorDocument 403 /adm/login
659: ErrorDocument 500 /adm/errorhandler
660: </Location>
661:
662: <Location /adm/authenticate>
663: SetHandler perl-script
664: PerlHandler Apache::lonauth
665: </Location>
666:
667: <Location /adm/migrateuser>
668: SetHandler perl-script
669: PerlHandler Apache::migrateuser
670: </Location>
671:
672: <Location /adm/sso>
673: <IfModule mod_shib>
674: AuthType shibboleth
675: ShibUseEnvironment On
676: ShibRequestSetting requireSession 1
677: ShibRequestSetting redirectToSSL 443
678: require valid-user
679: PerlAuthzHandler Apache::lonshibacc
680: PerlAuthzHandler Apache::lonacc
681: </IfModule>
682: </Location>
683:
684: <Location /adm/annotations>
685: AuthType LONCAPA
686: Require valid-user
687: PerlAuthzHandler Apache::lonacc
688: SetHandler perl-script
689: PerlHandler Apache::admannotations
690: ErrorDocument 403 /adm/login
691: ErrorDocument 500 /adm/errorhandler
692: </Location>
693:
694: <Location /adm/spellcheck>
695: AuthType LONCAPA
696: Require valid-user
697: PerlAuthzHandler Apache::lonacc
698: SetHandler perl-script
699: PerlHandler Apache::lonspeller
700: ErrorDocument 403 /adm/login
701: ErrorDocument 500 /adm/errorhandler
702: </Location>
703:
704: <Location /adm/flip>
705: AuthType LONCAPA
706: Require valid-user
707: PerlAuthzHandler Apache::lonacc
708: SetHandler perl-script
709: PerlHandler Apache::lonpageflip
710: PerlCleanupHandler Apache::lonpageflip::cleanup
711: PerlCleanupHandler Apache::lonacc::cleanup
712: ErrorDocument 406 /adm/roles
713: ErrorDocument 403 /adm/login
714: ErrorDocument 500 /adm/errorhandler
715: </Location>
716:
717: <Location /adm/ambiguous>
718: AuthType LONCAPA
719: Require valid-user
720: PerlAuthzHandler Apache::lonacc
721: SetHandler perl-script
722: PerlHandler Apache::lonambiguous
723: PerlCleanupHandler Apache::lonambiguous::cleanup
724: PerlCleanupHandler Apache::lonacc::cleanup
725: ErrorDocument 403 /adm/login
726: ErrorDocument 500 /adm/errorhandler
727: </Location>
728:
729: <Location /adm/email>
730: AuthType LONCAPA
731: Require valid-user
732: PerlAuthzHandler Apache::lonacc
733: SetHandler perl-script
734: PerlHandler Apache::lonmsgdisplay
735: ErrorDocument 403 /adm/login
736: ErrorDocument 500 /adm/errorhandler
737: </Location>
738:
739: <Location /adm/notify>
740: AuthType LONCAPA
741: Require valid-user
742: PerlAuthzHandler Apache::lonacc
743: SetHandler perl-script
744: PerlHandler Apache::lonnotify
745: ErrorDocument 403 /adm/login
746: ErrorDocument 500 /adm/errorhandler
747: </Location>
748:
749: <Location /adm/parmset>
750: AuthType LONCAPA
751: Require valid-user
752: PerlAuthzHandler Apache::lonacc
753: SetHandler perl-script
754: PerlHandler Apache::lonparmset
755: ErrorDocument 403 /adm/login
756: ErrorDocument 406 /adm/roles
757: ErrorDocument 500 /adm/errorhandler
758: </Location>
759:
760: <Location /adm/courseprefs>
761: AuthType LONCAPA
762: Require valid-user
763: PerlAuthzHandler Apache::lonacc
764: SetHandler perl-script
765: PerlHandler Apache::courseprefs
766: ErrorDocument 403 /adm/login
767: ErrorDocument 406 /adm/roles
768: ErrorDocument 500 /adm/errorhandler
769: </Location>
770:
771: <Location /adm/slotrequest>
772: AuthType LONCAPA
773: Require valid-user
774: PerlAuthzHandler Apache::lonacc
775: SetHandler perl-script
776: PerlHandler Apache::slotrequest
777: ErrorDocument 403 /adm/login
778: ErrorDocument 406 /adm/roles
779: ErrorDocument 500 /adm/errorhandler
780: </Location>
781:
782: <Location /adm/wizard>
783: AuthType LONCAPA
784: Require valid-user
785: PerlAuthzHandler Apache::lonacc
786: SetHandler perl-script
787: PerlHandler Apache::lonwizard
788: ErrorDocument 403 /adm/login
789: ErrorDocument 406 /adm/roles
790: ErrorDocument 500 /adm/errorhandler
791: </Location>
792:
793: <Location /adm/grades>
794: AuthType LONCAPA
795: Require valid-user
796: PerlAuthzHandler Apache::lonacc
797: SetHandler perl-script
798: PerlHandler Apache::grades
799: ErrorDocument 403 /adm/login
800: ErrorDocument 406 /adm/roles
801: ErrorDocument 500 /adm/errorhandler
802: </Location>
803:
804: <Location /adm/requestcourse>
805: AuthType LONCAPA
806: Require valid-user
807: PerlAuthzHandler Apache::lonacc
808: SetHandler perl-script
809: PerlHandler Apache::lonrequestcourse
810: ErrorDocument 403 /adm/login
811: ErrorDocument 406 /adm/roles
812: ErrorDocument 500 /adm/errorhandler
813: </Location>
814:
815: <Location /adm/createcourse>
816: AuthType LONCAPA
817: Require valid-user
818: PerlAuthzHandler Apache::lonacc
819: SetHandler perl-script
820: PerlHandler Apache::loncreatecourse
821: ErrorDocument 403 /adm/login
822: ErrorDocument 406 /adm/roles
823: ErrorDocument 500 /adm/errorhandler
824: </Location>
825:
826: <Location /adm/modifycourse>
827: AuthType LONCAPA
828: Require valid-user
829: PerlAuthzHandler Apache::lonacc
830: SetHandler perl-script
831: PerlHandler Apache::lonmodifycourse
832: ErrorDocument 403 /adm/login
833: ErrorDocument 406 /adm/roles
834: ErrorDocument 500 /adm/errorhandler
835: </Location>
836:
837: <Location /adm/domainprefs>
838: AuthType LONCAPA
839: Require valid-user
840: PerlAuthzHandler Apache::lonacc
841: SetHandler perl-script
842: PerlHandler Apache::domainprefs
843: ErrorDocument 403 /adm/login
844: ErrorDocument 406 /adm/roles
845: ErrorDocument 500 /adm/errorhandler
846: </Location>
847:
848: <Location /adm/domainstatus>
849: PerlAccessHandler Apache::lonstatusacc
850: SetHandler perl-script
851: PerlHandler Apache::domainstatus
852: ErrorDocument 403 /adm/login
853: ErrorDocument 406 /adm/roles
854: ErrorDocument 500 /adm/errorhandler
855: </Location>
856:
857: <Location /adm/createuser>
858: AuthType LONCAPA
859: Require valid-user
860: PerlAuthzHandler Apache::lonacc
861: SetHandler perl-script
862: PerlHandler Apache::loncreateuser
863: ErrorDocument 403 /adm/login
864: ErrorDocument 406 /adm/roles
865: ErrorDocument 500 /adm/errorhandler
866: </Location>
867:
868: <Location /adm/publish>
869: AuthType LONCAPA
870: Require valid-user
871: PerlAuthzHandler Apache::lonacc
872: SetHandler perl-script
873: PerlHandler Apache::lonpublisher
874: ErrorDocument 403 /adm/login
875: ErrorDocument 404 /adm/notfound.html
876: ErrorDocument 406 /adm/unauthorized
877: ErrorDocument 500 /adm/errorhandler
878: </Location>
879:
880: <LocationMatch "^/+priv/.*/$">
881: AuthType LONCAPA
882: Require valid-user
883: PerlAuthzHandler Apache::loncacc
884: SetHandler perl-script
885: PerlHandler Apache::lonpubdir
886: ErrorDocument 403 /adm/login
887: ErrorDocument 404 /adm/notfound.html
888: ErrorDocument 406 /adm/unauthorized
889: ErrorDocument 500 /adm/errorhandler
890: </LocationMatch>
891:
892: <Location /adm/unauthorized>
893: AuthType LONCAPA
894: Require valid-user
895: PerlAuthzHandler Apache::lonacc
896: SetHandler perl-script
897: PerlHandler Apache::lonunauthorized
898: ErrorDocument 403 /adm/login
899: ErrorDocument 404 /adm/notfound.html
900: ErrorDocument 500 /adm/errorhandler
901: </Location>
902:
903: <Location /adm/retrieve>
904: AuthType LONCAPA
905: Require valid-user
906: PerlAuthzHandler Apache::lonacc
907: SetHandler perl-script
908: PerlHandler Apache::lonretrieve
909: ErrorDocument 403 /adm/login
910: ErrorDocument 404 /adm/notfound.html
911: ErrorDocument 406 /adm/unauthorized
912: ErrorDocument 500 /adm/errorhandler
913: </Location>
914:
915: <Location /adm/cleanup>
916: AuthType LONCAPA
917: Require valid-user
918: PerlAuthzHandler Apache::lonacc
919: SetHandler perl-script
920: PerlHandler Apache::loncleanup
921: ErrorDocument 403 /adm/login
922: ErrorDocument 404 /adm/notfound.html
923: ErrorDocument 406 /adm/unauthorized
924: ErrorDocument 500 /adm/errorhandler
925: </Location>
926:
927: <Location /adm/cfile>
928: AuthType LONCAPA
929: Require valid-user
930: PerlAuthzHandler Apache::lonacc
931: SetHandler perl-script
932: PerlHandler Apache::loncfile
933: ErrorDocument 403 /adm/login
934: ErrorDocument 404 /adm/notfound.html
935: ErrorDocument 406 /adm/unauthorized
936: ErrorDocument 500 /adm/errorhandler
937: </Location>
938:
939: <Location /adm/diff>
940: AuthType LONCAPA
941: Require valid-user
942: PerlAuthzHandler Apache::lonacc
943: SetHandler perl-script
944: PerlHandler Apache::londiff
945: ErrorDocument 403 /adm/login
946: ErrorDocument 404 /adm/notfound.html
947: ErrorDocument 406 /adm/unauthorized
948: ErrorDocument 500 /adm/errorhandler
949: </Location>
950:
951: <Location /adm/upload>
952: AuthType LONCAPA
953: Require valid-user
954: PerlAuthzHandler Apache::lonacc
955: SetHandler perl-script
956: PerlHandler Apache::lonupload
957: ErrorDocument 403 /adm/login
958: ErrorDocument 404 /adm/notfound.html
959: ErrorDocument 406 /adm/unauthorized
960: ErrorDocument 500 /adm/errorhandler
961: </Location>
962:
963: <Location /adm/imsimport>
964: AuthType LONCAPA
965: Require valid-user
966: PerlAuthzHandler Apache::lonacc
967: SetHandler perl-script
968: PerlHandler Apache::imsimport
969: ErrorDocument 403 /adm/login
970: ErrorDocument 404 /adm/notfound.html
971: ErrorDocument 406 /adm/unauthorized
972: ErrorDocument 500 /adm/errorhandler
973: </Location>
974:
975: <Location /adm/testbank>
976: AuthType LONCAPA
977: Require valid-user
978: PerlAuthzHandler Apache::lonacc
979: SetHandler perl-script
980: PerlHandler Apache::testbankimport
981: ErrorDocument 403 /adm/login
982: ErrorDocument 404 /adm/notfound.html
983: ErrorDocument 406 /adm/unauthorized
984: ErrorDocument 500 /adm/errorhandler
985: </Location>
986:
987: <Location /adm/assesscalc>
988: AuthType LONCAPA
989: Require valid-user
990: PerlAuthzHandler Apache::lonacc
991: SetHandler perl-script
992: PerlHandler Apache::lonspreadsheet
993: ErrorDocument 403 /adm/login
994: ErrorDocument 406 /adm/roles
995: ErrorDocument 413 /adm/overloaded.txt
996: ErrorDocument 500 /adm/errorhandler
997: </Location>
998:
999: <Location /adm/studentcalc>
1000: AuthType LONCAPA
1001: Require valid-user
1002: PerlAuthzHandler Apache::lonacc
1003: SetHandler perl-script
1004: PerlHandler Apache::lonspreadsheet
1005: ErrorDocument 403 /adm/login
1006: ErrorDocument 406 /adm/roles
1007: ErrorDocument 413 /adm/overloaded.txt
1008: ErrorDocument 500 /adm/errorhandler
1009: </Location>
1010:
1011: <Location /adm/classcalc>
1012: AuthType LONCAPA
1013: Require valid-user
1014: PerlAuthzHandler Apache::lonacc
1015: SetHandler perl-script
1016: PerlHandler Apache::lonspreadsheet
1017: ErrorDocument 403 /adm/login
1018: ErrorDocument 406 /adm/roles
1019: ErrorDocument 413 /adm/overloaded.txt
1020: ErrorDocument 500 /adm/errorhandler
1021: </Location>
1022:
1023: <Location /adm/dropadd>
1024: AuthType LONCAPA
1025: Require valid-user
1026: PerlAuthzHandler Apache::lonacc
1027: SetHandler perl-script
1028: PerlHandler Apache::londropadd
1029: ErrorDocument 403 /adm/login
1030: ErrorDocument 406 /adm/roles
1031: ErrorDocument 500 /adm/errorhandler
1032: </Location>
1033:
1034: <Location /adm/viewclasslist>
1035: AuthType LONCAPA
1036: Require valid-user
1037: PerlAuthzHandler Apache::lonacc
1038: SetHandler perl-script
1039: PerlHandler Apache::lonviewclasslist
1040: ErrorDocument 403 /adm/login
1041: ErrorDocument 406 /adm/roles
1042: ErrorDocument 500 /adm/errorhandler
1043: </Location>
1044:
1045: <Location /adm/coursegroups>
1046: AuthType LONCAPA
1047: Require valid-user
1048: PerlAuthzHandler Apache::lonacc
1049: SetHandler perl-script
1050: PerlHandler Apache::loncoursegroups
1051: ErrorDocument 403 /adm/login
1052: ErrorDocument 406 /adm/roles
1053: ErrorDocument 500 /adm/errorhandler
1054: </Location>
1055:
1056: <Location /adm/groupboards>
1057: AuthType LONCAPA
1058: Require valid-user
1059: PerlAuthzHandler Apache::lonacc
1060: SetHandler perl-script
1061: PerlHandler Apache::groupboards
1062: ErrorDocument 403 /adm/login
1063: ErrorDocument 406 /adm/roles
1064: ErrorDocument 500 /adm/errorhandler
1065: </Location>
1066:
1067: <Location /adm/grouproster>
1068: AuthType LONCAPA
1069: Require valid-user
1070: PerlAuthzHandler Apache::lonacc
1071: SetHandler perl-script
1072: PerlHandler Apache::grouproster
1073: ErrorDocument 403 /adm/login
1074: ErrorDocument 406 /adm/roles
1075: ErrorDocument 500 /adm/errorhandler
1076: </Location>
1077:
1078: <Location /adm/whatsnew>
1079: AuthType LONCAPA
1080: Require valid-user
1081: PerlAuthzHandler Apache::lonacc
1082: SetHandler perl-script
1083: PerlHandler Apache::lonwhatsnew
1084: ErrorDocument 403 /adm/login
1085: ErrorDocument 406 /adm/roles
1086: ErrorDocument 500 /adm/errorhandler
1087: </Location>
1088:
1089: <Location /adm/populate>
1090: AuthType LONCAPA
1091: Require valid-user
1092: PerlAuthzHandler Apache::lonacc
1093: SetHandler perl-script
1094: PerlHandler Apache::lonpopulate
1095: ErrorDocument 403 /adm/login
1096: ErrorDocument 406 /adm/roles
1097: ErrorDocument 500 /adm/errorhandler
1098: </Location>
1099:
1100: <Location /adm/managekeys>
1101: AuthType LONCAPA
1102: Require valid-user
1103: PerlAuthzHandler Apache::lonacc
1104: SetHandler perl-script
1105: PerlHandler Apache::lonmanagekeys
1106: ErrorDocument 403 /adm/login
1107: ErrorDocument 406 /adm/roles
1108: ErrorDocument 500 /adm/errorhandler
1109: </Location>
1110:
1111: <Location /adm/printout>
1112: AuthType LONCAPA
1113: Require valid-user
1114: PerlAuthzHandler Apache::lonacc
1115: SetHandler perl-script
1116: PerlHandler Apache::lonprintout
1117: ErrorDocument 403 /adm/login
1118: ErrorDocument 413 /adm/overloaded.txt
1119: ErrorDocument 500 /adm/errorhandler
1120: </Location>
1121:
1122: <Location /adm/feedback>
1123: AuthType LONCAPA
1124: Require valid-user
1125: PerlAuthzHandler Apache::lonacc
1126: SetHandler perl-script
1127: PerlHandler Apache::lonfeedback
1128: ErrorDocument 403 /adm/login
1129: ErrorDocument 500 /adm/errorhandler
1130: </Location>
1131:
1132: <Location /adm/coursedocs>
1133: AuthType LONCAPA
1134: Require valid-user
1135: PerlAuthzHandler Apache::lonacc
1136: SetHandler perl-script
1137: PerlHandler Apache::londocs
1138: PerlCleanupHandler Apache::londocs::untiehash
1139: PerlCleanupHandler Apache::lonacc::cleanup
1140: ErrorDocument 403 /adm/login
1141: ErrorDocument 500 /adm/errorhandler
1142: </Location>
1143:
1144: <Location /adm/supplemental>
1145: AuthType LONCAPA
1146: Require valid-user
1147: PerlAuthzHandler Apache::lonacc
1148: SetHandler perl-script
1149: PerlHandler Apache::londocs
1150: PerlCleanupHandler Apache::londocs::untiehash
1151: PerlCleanupHandler Apache::lonacc::cleanup
1152: ErrorDocument 403 /adm/login
1153: ErrorDocument 500 /adm/errorhandler
1154: </Location>
1155:
1156: <Location /adm/imsimportdocs>
1157: AuthType LONCAPA
1158: Require valid-user
1159: PerlAuthzHandler Apache::lonacc
1160: SetHandler perl-script
1161: PerlHandler Apache::imsimportdocs
1162: ErrorDocument 403 /adm/login
1163: ErrorDocument 500 /adm/errorhandler
1164: </Location>
1165:
1166: <LocationMatch "^/adm/announcements">
1167: AuthType LONCAPA
1168: Require valid-user
1169: PerlAuthzHandler Apache::lonacc
1170: SetHandler perl-script
1171: PerlHandler Apache::lonannounce
1172: ErrorDocument 403 /adm/login
1173: ErrorDocument 500 /adm/errorhandler
1174: </LocationMatch>
1175:
1176: <Location /adm/chat>
1177: AuthType LONCAPA
1178: Require valid-user
1179: PerlAuthzHandler Apache::lonacc
1180: SetHandler perl-script
1181: PerlHandler Apache::lonchat
1182: ErrorDocument 500 /adm/errorhandler
1183: </Location>
1184:
1185: <Location /adm/chatfetch>
1186: AuthType LONCAPA
1187: Require valid-user
1188: PerlAuthzHandler Apache::lonacc
1189: SetHandler perl-script
1190: PerlHandler Apache::lonchatfetch
1191: ErrorDocument 413 /adm/overloaded.txt
1192: ErrorDocument 500 /adm/errorhandler
1193: </Location>
1194:
1195: <Location /adm/groupchat>
1196: AuthType LONCAPA
1197: Require valid-user
1198: PerlAuthzHandler Apache::lonacc
1199: SetHandler perl-script
1200: PerlHandler Apache::longroupchat
1201: ErrorDocument 403 /adm/login
1202: ErrorDocument 500 /adm/errorhandler
1203: </Location>
1204:
1205: <Location /adm/evaluate>
1206: AuthType LONCAPA
1207: Require valid-user
1208: PerlAuthzHandler Apache::lonacc
1209: SetHandler perl-script
1210: PerlHandler Apache::lonevaluate
1211: ErrorDocument 403 /adm/login
1212: ErrorDocument 500 /adm/errorhandler
1213: </Location>
1214:
1215: <Location /adm/preferences>
1216: AuthType LONCAPA
1217: Require valid-user
1218: PerlAuthzHandler Apache::lonacc
1219: SetHandler perl-script
1220: PerlHandler Apache::lonpreferences
1221: ErrorDocument 403 /adm/login
1222: ErrorDocument 500 /adm/errorhandler
1223: </Location>
1224:
1225: <Location /adm/communicate>
1226: AuthType LONCAPA
1227: Require valid-user
1228: PerlAuthzHandler Apache::lonacc
1229: SetHandler perl-script
1230: PerlHandler Apache::loncommunicate
1231: ErrorDocument 403 /adm/login
1232: ErrorDocument 500 /adm/errorhandler
1233: </Location>
1234:
1235: <Location /adm/searchcat>
1236: AuthType LONCAPA
1237: Require valid-user
1238: PerlAuthzHandler Apache::lonacc
1239: SetHandler perl-script
1240: PerlHandler Apache::lonsearchcat
1241: PerlCleanupHandler Apache::lonsearchcat::cleanup
1242: PerlCleanupHandler Apache::lonacc::cleanup
1243: ErrorDocument 403 /adm/login
1244: ErrorDocument 413 /adm/overloaded.txt
1245: ErrorDocument 500 /adm/errorhandler
1246: </Location>
1247:
1248: <Location /adm/navmaps>
1249: AuthType LONCAPA
1250: Require valid-user
1251: PerlAuthzHandler Apache::lonacc
1252: SetHandler perl-script
1253: PerlHandler Apache::lonnavdisplay
1254: ErrorDocument 403 /adm/login
1255: ErrorDocument 406 /adm/roles
1256: ErrorDocument 500 /adm/errorhandler
1257: </Location>
1258:
1259: <Location /adm/quickgrades>
1260: AuthType LONCAPA
1261: Require valid-user
1262: PerlAuthzHandler Apache::lonacc
1263: SetHandler perl-script
1264: PerlHandler Apache::lonquickgrades
1265: ErrorDocument 403 /adm/login
1266: ErrorDocument 406 /adm/roles
1267: ErrorDocument 500 /adm/errorhandler
1268: </Location>
1269:
1270: <Location /adm/groupsort>
1271: AuthType LONCAPA
1272: Require valid-user
1273: PerlAuthzHandler Apache::lonacc
1274: SetHandler perl-script
1275: PerlHandler Apache::groupsort
1276: PerlCleanupHandler Apache::groupsort::cleanup
1277: PerlCleanupHandler Apache::lonacc::cleanup
1278: ErrorDocument 403 /adm/login
1279: ErrorDocument 500 /adm/errorhandler
1280: </Location>
1281:
1282: <Location /adm/wishlist>
1283: AuthType LONCAPA
1284: Require valid-user
1285: PerlAuthzHandler Apache::lonacc
1286: SetHandler perl-script
1287: PerlHandler Apache::lonwishlistdisplay
1288: ErrorDocument 403 /adm/login
1289: ErrorDocument 406 /adm/roles
1290: ErrorDocument 500 /adm/errorhandler
1291: </Location>
1292:
1293: <Location /adm/setblock>
1294: AuthType LONCAPA
1295: Require valid-user
1296: PerlAuthzHandler Apache::lonacc
1297: SetHandler perl-script
1298: PerlHandler Apache::lonblockingmenu
1299: ErrorDocument 403 /adm/login
1300: ErrorDocument 406 /adm/roles
1301: ErrorDocument 500 /adm/errorhandler
1302: </Location>
1303:
1304: <Location /adm/blockingstatus>
1305: PerlAccessHandler Apache::publiccheck
1306: AuthType LONCAPA
1307: Require valid-user
1308: PerlAuthzHandler Apache::lonacc
1309: SetHandler perl-script
1310: PerlHandler Apache::lonblockingstatus
1311: </Location>
1312:
1313: <Location /adm/errorhandler>
1314: SetHandler perl-script
1315: PerlHandler Apache::lonerrorhandler
1316: </Location>
1317:
1318: <LocationMatch "^/adm/help/.*\.hlp$">
1319: AuthType LONCAPA
1320: Require valid-user
1321: PerlAccessHandler Apache::publiccheck
1322: PerlAuthzHandler Apache::lonacc
1323: SetHandler perl-script
1324: PerlHandler Apache::lonhelp
1325: ErrorDocument 500 /adm/errorhandler
1326: </LocationMatch>
1327:
1328: <LocationMatch "^/adm/helpmenu">
1329: AuthType LONCAPA
1330: Require valid-user
1331: PerlAuthzHandler Apache::lonacc
1332: SetHandler perl-script
1333: PerlHandler Apache::lonhelpmenu
1334: ErrorDocument 500 /adm/errorhandler
1335: </LocationMatch>
1336:
1337: <LocationMatch "^/adm/support">
1338: AuthType LONCAPA
1339: Require valid-user
1340: PerlAuthzHandler Apache::lonacc
1341: SetHandler perl-script
1342: PerlHandler Apache::lonsupportreq
1343: ErrorDocument 500 /adm/errorhandler
1344: </LocationMatch>
1345:
1346: <LocationMatch "^/adm/helpdesk">
1347: SetHandler perl-script
1348: PerlHandler Apache::lonsupportreq
1349: ErrorDocument 500 /adm/errorhandler
1350: </LocationMatch>
1351:
1352: <LocationMatch "^/adm/css">
1353: SetHandler perl-script
1354: PerlHandler Apache::loncss
1355: ErrorDocument 500 /adm/errorhandler
1356: </LocationMatch>
1357:
1358: <LocationMatch "^/adm/coursecatalog">
1359: SetHandler perl-script
1360: PerlHandler Apache::coursecatalog
1361: ErrorDocument 500 /adm/errorhandler
1362: </LocationMatch>
1363:
1364: <LocationMatch "^/adm/resetpw">
1365: SetHandler perl-script
1366: PerlHandler Apache::resetpw
1367: ErrorDocument 500 /adm/errorhandler
1368: </LocationMatch>
1369:
1370: <LocationMatch "^/adm/selfenroll">
1371: SetHandler perl-script
1372: PerlHandler Apache::selfenroll
1373: ErrorDocument 500 /adm/errorhandler
1374: </LocationMatch>
1375:
1376: <LocationMatch "^/adm/createaccount">
1377: SetHandler perl-script
1378: PerlHandler Apache::createaccount
1379: ErrorDocument 500 /adm/errorhandler
1380: </LocationMatch>
1381:
1382: <LocationMatch "^/adm/dns">
1383: SetHandler perl-script
1384: PerlHandler Apache::londns
1385: ErrorDocument 500 /adm/errorhandler
1386: </LocationMatch>
1387:
1388: # ------------------------------------------------- Backdoor Adm Tests/Programs
1389:
1390: <Location /adm/test>
1391: PerlAccessHandler Apache::lonstatusacc
1392: SetHandler perl-script
1393: PerlHandler Apache::lontest
1394: </Location>
1395:
1396: # ------------------------------------------------------- Shutting down a child
1397:
1398: PerlChildExitHandler Apache::lonacc::goodbye
1399:
1400: #
1401: # LON-CAPA Section (extensions to access.conf permission configuration)
1402: #
1403: # =========================================================== Directory Options
1404:
1405: # Start out with "no"
1406:
1407: <Directory />
1408: Options None
1409: AllowOverride None
1410: order deny,allow
1411: deny from all
1412: </Directory>
1413:
1414: # Allow uploaded files to be served
1415:
1416: <Directory "/home/httpd/lonUsers">
1417: Options Includes FollowSymLinks
1418: AllowOverride None
1419: order allow,deny
1420: allow from all
1421: </Directory>
1422:
1423: # Allow construction space files to be served
1424:
1425: <Directory "/home/*/public_html/" >
1426: Options Includes FollowSymLinks
1427: AllowOverride
1428: order allow,deny
1429: allow from all
1430: </Directory>
1431:
1432: # Yes to symbolic links and server-side includes
1433:
1434: <Directory /home/httpd/html>
1435: Options Includes FollowSymLinks
1436: AllowOverride None
1437: order allow,deny
1438: allow from all
1439: </Directory>
1440:
1441: # If it is in cgi-bin, then it can be executed as a CGI script.
1442:
1443: <Directory /home/httpd/cgi-bin>
1444: AllowOverride None
1445: Options ExecCGI FollowSymLinks
1446: order allow,deny
1447: allow from all
1448: </Directory>
1449:
1450: # Allow serving of files in prtspool
1451:
1452: <Directory "/home/httpd/prtspool/">
1453: Options Includes FollowSymLinks
1454: AllowOverride None
1455: order allow,deny
1456: allow from all
1457: </Directory>
1458:
1459: # Allow serving of files in zipspool
1460:
1461: <Directory "/home/httpd/zipspool/">
1462: Options Includes FollowSymLinks
1463: AllowOverride None
1464: order allow,deny
1465: allow from all
1466: </Directory>
1467:
1468: # Allow serving of files in captchaspool
1469:
1470: <Directory "/home/httpd/captchaspool/">
1471: Options Includes FollowSymLinks
1472: AllowOverride None
1473: order allow,deny
1474: allow from all
1475: </Directory>
1476:
1477: # ============================================================= Access Handlers
1478:
1479: # ------------------------------------------------- Allow server-status reports
1480: <Location /server-status>
1481: PerlAccessHandler Apache::lonstatusacc
1482: SetHandler server-status
1483: </Location>
1484:
1485: # ------------------------ Allow LON-CAPA "low-level" connection status reports
1486: <LocationMatch "^/+lon-status/.*">
1487: PerlAccessHandler Apache::lonstatusacc
1488: ErrorDocument 406 /adm/roles
1489: ErrorDocument 500 /adm/errorhandler
1490: </LocationMatch>
1491:
1492: # ------------------- Allow access to local system documentation from localhost
1493: Alias /doc /usr/doc
1494: <Directory /usr/doc>
1495: order deny,allow
1496: deny from all
1497: allow from localhost
1498: Options Indexes FollowSymLinks
1499: </Directory>
1500:
1501: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1502: # ====================================== Internal Settings / Perl Configuration
1503:
1504: PerlSetVar lonVersion '<!-- VERSION -->'
1505: PerlSetVar lonIDsDir /home/httpd/lonIDs
1506: PerlSetVar lonDAVsessDir /home/httpd/webdav/sessionIDs
1507: PerlSetVar lonTabDir /home/httpd/lonTabs
1508: PerlSetVar lonUsersDir /home/httpd/lonUsers
1509: PerlSetVar lonIconsURL /adm/lonIcons
1510: PerlSetVar londPort 5663
1511: PerlSetVar lonSysEMail korte@lite.msu.edu
1512: PerlSetVar lonDaemons /home/httpd/perl
1513: PerlSetVar lonLib /home/httpd/lib
1514: PerlSetVar lonSockDir /home/httpd/sockets
1515: PerlSetVar lonSockCreate /home/httpd/sockets/common
1516: PerlSetVar lonDocRoot /home/httpd/html
1517: PerlSetVar lonPrtDir /home/httpd/prtspool
1518: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1519: PerlSetVar lonZipDir /home/httpd/zipspool
1520: PerlSetVar lonCaptchaDir /home/httpd/captchaspool
1521: PerlSetVar lonCaptchaDb /home/httpd/captchadb
1522: PerlSetVar lonFontsDir /home/httpd/html/adm/fonts
1523: # & separated list of : separated fields in order of
1524: # - internal name to call it,
1525: # - regexp that it should match (done case-insensitively)
1526: # - regexp that is should not match (done case-insensitively)
1527: # - regexp that will pull out the version number into $1
1528: # - a number that describes the minimum version that has mathml support
1529: # - a number that describes the minimum number version that has unicode support
1530:
1531: PerlSetVar lonBrowsDet explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:5&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&netscape:netscape:msie:netscape\/(\d+\.\d+):9999:7&netscape:netscape\/[7-9]:shouldnotmatch:netscape\/(\d+\.\d+):9999:7&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/([\d\.]+):9999:84
1532:
1533: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1534: PerlSetVar lonScansDir /home/httpd/scantron
1535: PerlSetVar lonScriptTimeout 10
1536: PerlSetVar BugzillaHost http://bugs.lon-capa.org/
1537: PerlSetVar FAQHost http://help.lon-capa.org/
1538: # -----------------------------------------------------------------------------
1539: # NOTE: lonSqlAccess key is the password for the MySQL user
1540: # www@localhost. This value must always be "localhostkey".
1541: # The only security risk occurs when somebody logs in as 'www' on your system
1542: # (in which case you have much bigger problems than whether or not they
1543: # can access the non-authoritative loncapa database on your machine).
1544:
1545: PerlSetVar lonSqlAccess localhostkey
1546:
1547: #----------------------------------------------------------------------------
1548: #
1549: # Parameters used by secure lond/lonc
1550:
1551: #
1552: # Secure lond/lonc require ssl certificate and private
1553: # key files to function correctly. The certificate
1554: # files need not be terribly secure, but the private key files
1555: # should be set up so that only www (the lonc/lond effective user)
1556: # can read them.
1557: #
1558: # The definition below is the full path to the directory that
1559: # contains the certificate and key files:
1560:
1561: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1562:
1563: #
1564: # Secure lond/lonc require two certificates and a private host key.
1565: # The certificates required are that of the lonCAPA certificate authority
1566: # and the certificate that authority issued to this host.
1567: # lonnetCertificateAuthority is the name of the file that contains the
1568: # lonCAPA certificate authority's certificate.
1569: # lonnetCertificate is the name of the file that contains the certificate
1570: # issued to the host by the certificate authority.
1571: # Both of these variables are names of files assumed to be in
1572: # lonCertificateDirectory:
1573:
1574: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1575: PerlSetVar lonnetCertificate lonhostcert.pem
1576:
1577: #
1578: # To generate the request for a certificate, and to negotiate the
1579: # initial ssl connection, the host requires a private key. This key
1580: # is created at lonCAPA install time. Did we mention above that it
1581: # should be set so that only www can read it? The variale below
1582: # is the name of the file relative to lonnetCertificateDirectory
1583: # that has the host's private key. Did we remember to tell you to
1584: # keep the permissions on that file set to rw------- (0600)?
1585: #
1586:
1587: PerlSetVar lonnetPrivateKey lonKey.pem
1588:
1589: # Did we mention that the file described above must have
1590: # permissions really locked down so that it can't be stolen?
1591:
1592: #-------------------------------------------------------------------------
1593:
1594: # Parameters that define where all the ssl stuff is that's needed
1595: # to generate certificate requests and, on a system that's a CA
1596: # the certificate authority.
1597: #
1598: # SSLProgram -> Path to the openssl command
1599: # SSLDirectory -> Directory containing ssl configuration files etc.
1600: # SSLCAConfig -> Name of the SSL config file for the certificate
1601: # Authority.
1602: # SSLCAFile -> Full path to the Certificate authority file
1603: # (on the cert manager system).
1604: # SSLEmail -> E-mail address of loncapa certificate manager.
1605: # The following are good for the loncapa redhat installs and
1606: # the loncapa certificate authority system:
1607: #
1608: PerlSetVar SSLProgram /usr/bin/openssl
1609: PerlSetVar SSLDirectory /usr/share/ssl
1610: PerlSetVar SSLCAConfig loncapaca
1611: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1612: PerlSetVar SSLEmail certificate@lon-capa.org
1613:
1614: #-------------------------------------------------------------------------
1615:
1616:
1617: # ====================================== Include support for SSL rewrites
1618:
1619: Include conf/loncapa_rewrite.conf
1620:
1621:
1622: # ====================================== Include machine-specific configuration
1623:
1624: Include conf/loncapa.conf
1625:
1626: # ================================================= Include local configuration
1627:
1628: Include conf/loncapa_apache_local*.conf
1629:
1630: # ================================================== Initiate mod_perl starting
1631:
1632: PerlRequire conf/startup.pl
1633: <IfDefine !MODPERL2>
1634: PerlFreshRestart On
1635: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>