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