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