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