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