1: ##
2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
3: ##
4:
5: # $Id: loncapa_apache.conf,v 1.215.2.30.2.2 2022/07/08 16:21:07 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: <Location /adm/restrictedaccess>
675: PerlAccessHandler Apache::publiccheck
676: AuthType LONCAPA
677: Require valid-user
678: PerlAuthzHandler Apache::lonacc
679: SetHandler perl-script
680: PerlHandler Apache::restrictedaccess
681: ErrorDocument 500 /adm/errorhandler
682: </Location>
683:
684: <Location /adm/blockedaccess>
685: PerlAccessHandler Apache::publiccheck
686: AuthType LONCAPA
687: Require valid-user
688: PerlAuthzHandler Apache::lonacc
689: SetHandler perl-script
690: PerlHandler Apache::blockedaccess
691: ErrorDocument 500 /adm/errorhandler
692: </Location>
693:
694: <Location /adm/protected>
695: PerlAccessHandler Apache::publiccheck
696: AuthType LONCAPA
697: Require valid-user
698: PerlAuthzHandler Apache::lonacc
699: SetHandler perl-script
700: PerlHandler Apache::lonprotected
701: ErrorDocument 403 /adm/login
702: ErrorDocument 500 /adm/errorhandler
703: </Location>
704:
705: <Location /adm/logout>
706: AuthType LONCAPA
707: Require valid-user
708: PerlAuthzHandler Apache::lonacc
709: SetHandler perl-script
710: PerlHandler Apache::lonlogout
711: ErrorDocument 403 /adm/login
712: ErrorDocument 409 /adm/preferences?action=lockwarning
713: ErrorDocument 500 /adm/errorhandler
714: </Location>
715:
716: <Location /adm/switchserver>
717: AuthType LONCAPA
718: Require valid-user
719: PerlAuthzHandler Apache::lonacc
720: SetHandler perl-script
721: PerlHandler Apache::switchserver
722: ErrorDocument 403 /adm/login
723: ErrorDocument 500 /adm/errorhandler
724: </Location>
725:
726: <Location /adm/authenticate>
727: SetHandler perl-script
728: PerlHandler Apache::lonauth
729: </Location>
730:
731: <Location /adm/migrateuser>
732: SetHandler perl-script
733: PerlHandler Apache::migrateuser
734: </Location>
735:
736: <Location /adm/sso>
737: Header set Cache-Control "private,no-store,no-cache,max-age=0"
738: <IfModule mod_shib>
739: AuthType shibboleth
740: ShibUseEnvironment On
741: ShibRequestSetting requireSession 1
742: ShibRequestSetting redirectToSSL 443
743: require valid-user
744: PerlAuthzHandler Apache::lonshibacc
745: PerlAuthzHandler Apache::lonacc
746: ErrorDocument 403 /adm/login
747: ErrorDocument 500 /adm/errorhandler
748: </IfModule>
749: <IfModule !mod_shib>
750: PerlTypeHandler Apache::lonnoshib
751: </IfModule>
752: </Location>
753:
754: <Location /adm/linkexit>
755: AuthType LONCAPA
756: Require valid-user
757: PerlAuthzHandler Apache::lonacc
758: SetHandler perl-script
759: PerlHandler Apache::lonlinkexit
760: ErrorDocument 403 /adm/login
761: ErrorDocument 409 /adm/preferences?action=lockwarning
762: ErrorDocument 500 /adm/errorhandler
763: </Location>
764:
765: <Location /adm/annotations>
766: AuthType LONCAPA
767: Require valid-user
768: PerlAuthzHandler Apache::lonacc
769: SetHandler perl-script
770: PerlHandler Apache::admannotations
771: ErrorDocument 403 /adm/login
772: ErrorDocument 500 /adm/errorhandler
773: </Location>
774:
775: <Location /adm/annotation>
776: AuthType LONCAPA
777: Require valid-user
778: PerlAuthzHandler Apache::lonacc
779: SetHandler perl-script
780: PerlHandler Apache::admannotations
781: ErrorDocument 403 /adm/login
782: ErrorDocument 500 /adm/errorhandler
783: </Location>
784:
785: <Location /adm/spellcheck>
786: AuthType LONCAPA
787: Require valid-user
788: PerlAuthzHandler Apache::lonacc
789: SetHandler perl-script
790: PerlHandler Apache::lonspeller
791: ErrorDocument 403 /adm/login
792: ErrorDocument 500 /adm/errorhandler
793: </Location>
794:
795: <Location /adm/flip>
796: AuthType LONCAPA
797: Require valid-user
798: PerlAuthzHandler Apache::lonacc
799: SetHandler perl-script
800: PerlHandler Apache::lonpageflip
801: PerlCleanupHandler Apache::lonpageflip::cleanup
802: PerlCleanupHandler Apache::lonacc::cleanup
803: ErrorDocument 406 /adm/roles
804: ErrorDocument 403 /adm/login
805: ErrorDocument 500 /adm/errorhandler
806: </Location>
807:
808: <Location /adm/ambiguous>
809: AuthType LONCAPA
810: Require valid-user
811: PerlAuthzHandler Apache::lonacc
812: SetHandler perl-script
813: PerlHandler Apache::lonambiguous
814: PerlCleanupHandler Apache::lonambiguous::cleanup
815: PerlCleanupHandler Apache::lonacc::cleanup
816: ErrorDocument 403 /adm/login
817: ErrorDocument 500 /adm/errorhandler
818: </Location>
819:
820: <Location /adm/email>
821: AuthType LONCAPA
822: Require valid-user
823: PerlAuthzHandler Apache::lonacc
824: SetHandler perl-script
825: PerlHandler Apache::lonmsgdisplay
826: ErrorDocument 403 /adm/login
827: ErrorDocument 500 /adm/errorhandler
828: </Location>
829:
830: <Location /adm/notify>
831: AuthType LONCAPA
832: Require valid-user
833: PerlAuthzHandler Apache::lonacc
834: SetHandler perl-script
835: PerlHandler Apache::lonnotify
836: ErrorDocument 403 /adm/login
837: ErrorDocument 500 /adm/errorhandler
838: </Location>
839:
840: <Location /adm/parmset>
841: AuthType LONCAPA
842: Require valid-user
843: PerlAuthzHandler Apache::lonacc
844: SetHandler perl-script
845: PerlHandler Apache::lonparmset
846: ErrorDocument 403 /adm/login
847: ErrorDocument 406 /adm/roles
848: ErrorDocument 500 /adm/errorhandler
849: </Location>
850:
851: <Location /adm/courseprefs>
852: AuthType LONCAPA
853: Require valid-user
854: PerlAuthzHandler Apache::lonacc
855: SetHandler perl-script
856: PerlHandler Apache::courseprefs
857: ErrorDocument 403 /adm/login
858: ErrorDocument 406 /adm/roles
859: ErrorDocument 500 /adm/errorhandler
860: </Location>
861:
862: <Location /adm/slotrequest>
863: AuthType LONCAPA
864: Require valid-user
865: PerlAuthzHandler Apache::lonacc
866: SetHandler perl-script
867: PerlHandler Apache::slotrequest
868: ErrorDocument 403 /adm/login
869: ErrorDocument 406 /adm/roles
870: ErrorDocument 500 /adm/errorhandler
871: </Location>
872:
873: <Location /adm/wizard>
874: AuthType LONCAPA
875: Require valid-user
876: PerlAuthzHandler Apache::lonacc
877: SetHandler perl-script
878: PerlHandler Apache::lonwizard
879: ErrorDocument 403 /adm/login
880: ErrorDocument 406 /adm/roles
881: ErrorDocument 500 /adm/errorhandler
882: </Location>
883:
884: <Location /adm/grades>
885: AuthType LONCAPA
886: Require valid-user
887: PerlAuthzHandler Apache::lonacc
888: SetHandler perl-script
889: PerlHandler Apache::grades
890: ErrorDocument 403 /adm/login
891: ErrorDocument 406 /adm/roles
892: ErrorDocument 500 /adm/errorhandler
893: </Location>
894:
895: <Location /adm/requestcourse>
896: AuthType LONCAPA
897: Require valid-user
898: PerlAuthzHandler Apache::lonacc
899: SetHandler perl-script
900: PerlHandler Apache::lonrequestcourse
901: ErrorDocument 403 /adm/login
902: ErrorDocument 406 /adm/roles
903: ErrorDocument 500 /adm/errorhandler
904: </Location>
905:
906: <Location /adm/createcourse>
907: AuthType LONCAPA
908: Require valid-user
909: PerlAuthzHandler Apache::lonacc
910: SetHandler perl-script
911: PerlHandler Apache::loncreatecourse
912: ErrorDocument 403 /adm/login
913: ErrorDocument 406 /adm/roles
914: ErrorDocument 500 /adm/errorhandler
915: </Location>
916:
917: <Location /adm/modifycourse>
918: AuthType LONCAPA
919: Require valid-user
920: PerlAuthzHandler Apache::lonacc
921: SetHandler perl-script
922: PerlHandler Apache::lonmodifycourse
923: ErrorDocument 403 /adm/login
924: ErrorDocument 406 /adm/roles
925: ErrorDocument 500 /adm/errorhandler
926: </Location>
927:
928: <Location /adm/domainprefs>
929: AuthType LONCAPA
930: Require valid-user
931: PerlAuthzHandler Apache::lonacc
932: SetHandler perl-script
933: PerlHandler Apache::domainprefs
934: ErrorDocument 403 /adm/login
935: ErrorDocument 406 /adm/roles
936: ErrorDocument 500 /adm/errorhandler
937: </Location>
938:
939: <Location /adm/domainstatus>
940: PerlAccessHandler Apache::lonstatusacc
941: SetHandler perl-script
942: PerlHandler Apache::domainstatus
943: ErrorDocument 403 /adm/login
944: ErrorDocument 406 /adm/roles
945: ErrorDocument 500 /adm/errorhandler
946: </Location>
947:
948: <Location /adm/createuser>
949: AuthType LONCAPA
950: Require valid-user
951: PerlAuthzHandler Apache::lonacc
952: SetHandler perl-script
953: PerlHandler Apache::loncreateuser
954: ErrorDocument 403 /adm/login
955: ErrorDocument 406 /adm/roles
956: ErrorDocument 500 /adm/errorhandler
957: </Location>
958:
959: <Location /adm/publish>
960: AuthType LONCAPA
961: Require valid-user
962: PerlAuthzHandler Apache::lonacc
963: SetHandler perl-script
964: PerlHandler Apache::lonpublisher
965: ErrorDocument 403 /adm/login
966: ErrorDocument 404 /adm/notfound.html
967: ErrorDocument 406 /adm/unauthorized
968: ErrorDocument 500 /adm/errorhandler
969: </Location>
970:
971: <LocationMatch "^/+priv/.*/$">
972: AuthType LONCAPA
973: Require valid-user
974: PerlAuthzHandler Apache::loncacc
975: SetHandler perl-script
976: PerlHandler Apache::lonpubdir
977: ErrorDocument 403 /adm/login
978: ErrorDocument 404 /adm/notfound.html
979: ErrorDocument 406 /adm/unauthorized
980: ErrorDocument 500 /adm/errorhandler
981: </LocationMatch>
982:
983: <Location /adm/unauthorized>
984: AuthType LONCAPA
985: Require valid-user
986: PerlAuthzHandler Apache::lonacc
987: SetHandler perl-script
988: PerlHandler Apache::lonunauthorized
989: ErrorDocument 403 /adm/login
990: ErrorDocument 404 /adm/notfound.html
991: ErrorDocument 500 /adm/errorhandler
992: </Location>
993:
994: <Location /adm/retrieve>
995: AuthType LONCAPA
996: Require valid-user
997: PerlAuthzHandler Apache::lonacc
998: SetHandler perl-script
999: PerlHandler Apache::lonretrieve
1000: ErrorDocument 403 /adm/login
1001: ErrorDocument 404 /adm/notfound.html
1002: ErrorDocument 406 /adm/unauthorized
1003: ErrorDocument 500 /adm/errorhandler
1004: </Location>
1005:
1006: <Location /adm/cleanup>
1007: AuthType LONCAPA
1008: Require valid-user
1009: PerlAuthzHandler Apache::lonacc
1010: SetHandler perl-script
1011: PerlHandler Apache::loncleanup
1012: ErrorDocument 403 /adm/login
1013: ErrorDocument 404 /adm/notfound.html
1014: ErrorDocument 406 /adm/unauthorized
1015: ErrorDocument 500 /adm/errorhandler
1016: </Location>
1017:
1018: <Location /adm/cfile>
1019: AuthType LONCAPA
1020: Require valid-user
1021: PerlAuthzHandler Apache::lonacc
1022: SetHandler perl-script
1023: PerlHandler Apache::loncfile
1024: ErrorDocument 403 /adm/login
1025: ErrorDocument 404 /adm/notfound.html
1026: ErrorDocument 406 /adm/unauthorized
1027: ErrorDocument 500 /adm/errorhandler
1028: </Location>
1029:
1030: <Location /adm/diff>
1031: AuthType LONCAPA
1032: Require valid-user
1033: PerlAuthzHandler Apache::lonacc
1034: SetHandler perl-script
1035: PerlHandler Apache::londiff
1036: ErrorDocument 403 /adm/login
1037: ErrorDocument 404 /adm/notfound.html
1038: ErrorDocument 406 /adm/unauthorized
1039: ErrorDocument 500 /adm/errorhandler
1040: </Location>
1041:
1042: <Location /adm/upload>
1043: AuthType LONCAPA
1044: Require valid-user
1045: PerlAuthzHandler Apache::lonacc
1046: SetHandler perl-script
1047: PerlHandler Apache::lonupload
1048: ErrorDocument 403 /adm/login
1049: ErrorDocument 404 /adm/notfound.html
1050: ErrorDocument 406 /adm/unauthorized
1051: ErrorDocument 500 /adm/errorhandler
1052: </Location>
1053:
1054: <Location /adm/imsimport>
1055: AuthType LONCAPA
1056: Require valid-user
1057: PerlAuthzHandler Apache::lonacc
1058: SetHandler perl-script
1059: PerlHandler Apache::imsimport
1060: ErrorDocument 403 /adm/login
1061: ErrorDocument 404 /adm/notfound.html
1062: ErrorDocument 406 /adm/unauthorized
1063: ErrorDocument 500 /adm/errorhandler
1064: </Location>
1065:
1066: <Location /adm/testbank>
1067: AuthType LONCAPA
1068: Require valid-user
1069: PerlAuthzHandler Apache::lonacc
1070: SetHandler perl-script
1071: PerlHandler Apache::testbankimport
1072: ErrorDocument 403 /adm/login
1073: ErrorDocument 404 /adm/notfound.html
1074: ErrorDocument 406 /adm/unauthorized
1075: ErrorDocument 500 /adm/errorhandler
1076: </Location>
1077:
1078: <Location /adm/assesscalc>
1079: AuthType LONCAPA
1080: Require valid-user
1081: PerlAuthzHandler Apache::lonacc
1082: SetHandler perl-script
1083: PerlHandler Apache::lonspreadsheet
1084: ErrorDocument 403 /adm/login
1085: ErrorDocument 406 /adm/roles
1086: ErrorDocument 413 /adm/overloaded.txt
1087: ErrorDocument 500 /adm/errorhandler
1088: </Location>
1089:
1090: <Location /adm/studentcalc>
1091: AuthType LONCAPA
1092: Require valid-user
1093: PerlAuthzHandler Apache::lonacc
1094: SetHandler perl-script
1095: PerlHandler Apache::lonspreadsheet
1096: ErrorDocument 403 /adm/login
1097: ErrorDocument 406 /adm/roles
1098: ErrorDocument 413 /adm/overloaded.txt
1099: ErrorDocument 500 /adm/errorhandler
1100: </Location>
1101:
1102: <Location /adm/classcalc>
1103: AuthType LONCAPA
1104: Require valid-user
1105: PerlAuthzHandler Apache::lonacc
1106: SetHandler perl-script
1107: PerlHandler Apache::lonspreadsheet
1108: ErrorDocument 403 /adm/login
1109: ErrorDocument 406 /adm/roles
1110: ErrorDocument 413 /adm/overloaded.txt
1111: ErrorDocument 500 /adm/errorhandler
1112: </Location>
1113:
1114: <Location /adm/dropadd>
1115: AuthType LONCAPA
1116: Require valid-user
1117: PerlAuthzHandler Apache::lonacc
1118: SetHandler perl-script
1119: PerlHandler Apache::londropadd
1120: ErrorDocument 403 /adm/login
1121: ErrorDocument 406 /adm/roles
1122: ErrorDocument 500 /adm/errorhandler
1123: </Location>
1124:
1125: <Location /adm/viewclasslist>
1126: AuthType LONCAPA
1127: Require valid-user
1128: PerlAuthzHandler Apache::lonacc
1129: SetHandler perl-script
1130: PerlHandler Apache::lonviewclasslist
1131: ErrorDocument 403 /adm/login
1132: ErrorDocument 406 /adm/roles
1133: ErrorDocument 500 /adm/errorhandler
1134: </Location>
1135:
1136: <Location /adm/coursegroups>
1137: AuthType LONCAPA
1138: Require valid-user
1139: PerlAuthzHandler Apache::lonacc
1140: SetHandler perl-script
1141: PerlHandler Apache::loncoursegroups
1142: ErrorDocument 403 /adm/login
1143: ErrorDocument 406 /adm/roles
1144: ErrorDocument 500 /adm/errorhandler
1145: </Location>
1146:
1147: <Location /adm/groupboards>
1148: AuthType LONCAPA
1149: Require valid-user
1150: PerlAuthzHandler Apache::lonacc
1151: SetHandler perl-script
1152: PerlHandler Apache::groupboards
1153: ErrorDocument 403 /adm/login
1154: ErrorDocument 406 /adm/roles
1155: ErrorDocument 500 /adm/errorhandler
1156: </Location>
1157:
1158: <Location /adm/grouproster>
1159: AuthType LONCAPA
1160: Require valid-user
1161: PerlAuthzHandler Apache::lonacc
1162: SetHandler perl-script
1163: PerlHandler Apache::grouproster
1164: ErrorDocument 403 /adm/login
1165: ErrorDocument 406 /adm/roles
1166: ErrorDocument 500 /adm/errorhandler
1167: </Location>
1168:
1169: <Location /adm/whatsnew>
1170: AuthType LONCAPA
1171: Require valid-user
1172: PerlAuthzHandler Apache::lonacc
1173: SetHandler perl-script
1174: PerlHandler Apache::lonwhatsnew
1175: ErrorDocument 403 /adm/login
1176: ErrorDocument 406 /adm/roles
1177: ErrorDocument 500 /adm/errorhandler
1178: </Location>
1179:
1180: <Location /adm/populate>
1181: AuthType LONCAPA
1182: Require valid-user
1183: PerlAuthzHandler Apache::lonacc
1184: SetHandler perl-script
1185: PerlHandler Apache::lonpopulate
1186: ErrorDocument 403 /adm/login
1187: ErrorDocument 406 /adm/roles
1188: ErrorDocument 500 /adm/errorhandler
1189: </Location>
1190:
1191: <Location /adm/managekeys>
1192: AuthType LONCAPA
1193: Require valid-user
1194: PerlAuthzHandler Apache::lonacc
1195: SetHandler perl-script
1196: PerlHandler Apache::lonmanagekeys
1197: ErrorDocument 403 /adm/login
1198: ErrorDocument 406 /adm/roles
1199: ErrorDocument 500 /adm/errorhandler
1200: </Location>
1201:
1202: <Location /adm/printout>
1203: AuthType LONCAPA
1204: Require valid-user
1205: PerlAuthzHandler Apache::lonacc
1206: SetHandler perl-script
1207: PerlHandler Apache::lonprintout
1208: ErrorDocument 403 /adm/login
1209: ErrorDocument 413 /adm/overloaded.txt
1210: ErrorDocument 500 /adm/errorhandler
1211: </Location>
1212:
1213: <Location /adm/feedback>
1214: AuthType LONCAPA
1215: Require valid-user
1216: PerlAuthzHandler Apache::lonacc
1217: SetHandler perl-script
1218: PerlHandler Apache::lonfeedback
1219: ErrorDocument 403 /adm/login
1220: ErrorDocument 500 /adm/errorhandler
1221: </Location>
1222:
1223: <Location /adm/coursedocs>
1224: AuthType LONCAPA
1225: Require valid-user
1226: PerlAuthzHandler Apache::lonacc
1227: SetHandler perl-script
1228: PerlHandler Apache::londocs
1229: PerlCleanupHandler Apache::londocs::untiehash
1230: PerlCleanupHandler Apache::lonacc::cleanup
1231: ErrorDocument 403 /adm/login
1232: ErrorDocument 500 /adm/errorhandler
1233: </Location>
1234:
1235: <Location /adm/supplemental>
1236: AuthType LONCAPA
1237: Require valid-user
1238: PerlAuthzHandler Apache::lonacc
1239: SetHandler perl-script
1240: PerlHandler Apache::londocs
1241: PerlCleanupHandler Apache::londocs::untiehash
1242: PerlCleanupHandler Apache::lonacc::cleanup
1243: ErrorDocument 403 /adm/login
1244: ErrorDocument 500 /adm/errorhandler
1245: </Location>
1246:
1247: <Location /adm/imsimportdocs>
1248: AuthType LONCAPA
1249: Require valid-user
1250: PerlAuthzHandler Apache::lonacc
1251: SetHandler perl-script
1252: PerlHandler Apache::imsimportdocs
1253: ErrorDocument 403 /adm/login
1254: ErrorDocument 500 /adm/errorhandler
1255: </Location>
1256:
1257: <Location /adm/extresedit>
1258: AuthType LONCAPA
1259: Require valid-user
1260: PerlAuthzHandler Apache::lonacc
1261: SetHandler perl-script
1262: PerlHandler Apache::lonextresedit
1263: ErrorDocument 403 /adm/login
1264: ErrorDocument 500 /adm/errorhandler
1265: </Location>
1266:
1267: <LocationMatch "^/adm/announcements">
1268: AuthType LONCAPA
1269: Require valid-user
1270: PerlAuthzHandler Apache::lonacc
1271: SetHandler perl-script
1272: PerlHandler Apache::lonannounce
1273: ErrorDocument 403 /adm/login
1274: ErrorDocument 500 /adm/errorhandler
1275: </LocationMatch>
1276:
1277: <Location /adm/chat>
1278: AuthType LONCAPA
1279: Require valid-user
1280: PerlAuthzHandler Apache::lonacc
1281: SetHandler perl-script
1282: PerlHandler Apache::lonchat
1283: ErrorDocument 500 /adm/errorhandler
1284: </Location>
1285:
1286: <Location /adm/chatfetch>
1287: AuthType LONCAPA
1288: Require valid-user
1289: PerlAuthzHandler Apache::lonacc
1290: SetHandler perl-script
1291: PerlHandler Apache::lonchatfetch
1292: ErrorDocument 413 /adm/overloaded.txt
1293: ErrorDocument 500 /adm/errorhandler
1294: </Location>
1295:
1296: <Location /adm/groupchat>
1297: AuthType LONCAPA
1298: Require valid-user
1299: PerlAuthzHandler Apache::lonacc
1300: SetHandler perl-script
1301: PerlHandler Apache::longroupchat
1302: ErrorDocument 403 /adm/login
1303: ErrorDocument 500 /adm/errorhandler
1304: </Location>
1305:
1306: <Location /adm/evaluate>
1307: AuthType LONCAPA
1308: Require valid-user
1309: PerlAuthzHandler Apache::lonacc
1310: SetHandler perl-script
1311: PerlHandler Apache::lonevaluate
1312: ErrorDocument 403 /adm/login
1313: ErrorDocument 500 /adm/errorhandler
1314: </Location>
1315:
1316: <Location /adm/preferences>
1317: AuthType LONCAPA
1318: Require valid-user
1319: PerlAuthzHandler Apache::lonacc
1320: SetHandler perl-script
1321: PerlHandler Apache::lonpreferences
1322: ErrorDocument 403 /adm/login
1323: ErrorDocument 500 /adm/errorhandler
1324: </Location>
1325:
1326: <Location /adm/communicate>
1327: AuthType LONCAPA
1328: Require valid-user
1329: PerlAuthzHandler Apache::lonacc
1330: SetHandler perl-script
1331: PerlHandler Apache::loncommunicate
1332: ErrorDocument 403 /adm/login
1333: ErrorDocument 500 /adm/errorhandler
1334: </Location>
1335:
1336: <Location /adm/searchcat>
1337: AuthType LONCAPA
1338: Require valid-user
1339: PerlAuthzHandler Apache::lonacc
1340: SetHandler perl-script
1341: PerlHandler Apache::lonsearchcat
1342: PerlCleanupHandler Apache::lonsearchcat::cleanup
1343: PerlCleanupHandler Apache::lonacc::cleanup
1344: ErrorDocument 403 /adm/login
1345: ErrorDocument 413 /adm/overloaded.txt
1346: ErrorDocument 500 /adm/errorhandler
1347: </Location>
1348:
1349: <Location /adm/navmaps>
1350: AuthType LONCAPA
1351: Require valid-user
1352: PerlAuthzHandler Apache::lonacc
1353: SetHandler perl-script
1354: PerlHandler Apache::lonnavdisplay
1355: ErrorDocument 403 /adm/login
1356: ErrorDocument 406 /adm/roles
1357: ErrorDocument 500 /adm/errorhandler
1358: </Location>
1359:
1360: <Location /adm/quickgrades>
1361: AuthType LONCAPA
1362: Require valid-user
1363: PerlAuthzHandler Apache::lonacc
1364: SetHandler perl-script
1365: PerlHandler Apache::lonquickgrades
1366: ErrorDocument 403 /adm/login
1367: ErrorDocument 406 /adm/roles
1368: ErrorDocument 500 /adm/errorhandler
1369: </Location>
1370:
1371: <Location /adm/groupsort>
1372: AuthType LONCAPA
1373: Require valid-user
1374: PerlAuthzHandler Apache::lonacc
1375: SetHandler perl-script
1376: PerlHandler Apache::groupsort
1377: PerlCleanupHandler Apache::groupsort::cleanup
1378: PerlCleanupHandler Apache::lonacc::cleanup
1379: ErrorDocument 403 /adm/login
1380: ErrorDocument 406 /adm/roles
1381: ErrorDocument 500 /adm/errorhandler
1382: </Location>
1383:
1384: <Location /adm/wishlist>
1385: AuthType LONCAPA
1386: Require valid-user
1387: PerlAuthzHandler Apache::lonacc
1388: SetHandler perl-script
1389: PerlHandler Apache::lonwishlistdisplay
1390: ErrorDocument 403 /adm/login
1391: ErrorDocument 406 /adm/roles
1392: ErrorDocument 500 /adm/errorhandler
1393: </Location>
1394:
1395: <Location /adm/setblock>
1396: AuthType LONCAPA
1397: Require valid-user
1398: PerlAuthzHandler Apache::lonacc
1399: SetHandler perl-script
1400: PerlHandler Apache::lonblockingmenu
1401: ErrorDocument 403 /adm/login
1402: ErrorDocument 406 /adm/roles
1403: ErrorDocument 500 /adm/errorhandler
1404: </Location>
1405:
1406: <Location /adm/blockingstatus>
1407: PerlAccessHandler Apache::publiccheck
1408: AuthType LONCAPA
1409: Require valid-user
1410: PerlAuthzHandler Apache::lonacc
1411: SetHandler perl-script
1412: PerlHandler Apache::lonblockingstatus
1413: </Location>
1414:
1415: <Location /adm/accesstimes>
1416: AuthType LONCAPA
1417: Require valid-user
1418: PerlAuthzHandler Apache::lonacc
1419: SetHandler perl-script
1420: PerlHandler Apache::lonaccesstimes
1421: ErrorDocument 403 /adm/login
1422: ErrorDocument 406 /adm/roles
1423: ErrorDocument 500 /adm/errorhandler
1424: </Location>
1425:
1426: <Location /adm/errorhandler>
1427: SetHandler perl-script
1428: PerlHandler Apache::lonerrorhandler
1429: </Location>
1430:
1431: <LocationMatch "^/adm/help/.*\.hlp$">
1432: AuthType LONCAPA
1433: Require valid-user
1434: PerlAccessHandler Apache::publiccheck
1435: PerlAuthzHandler Apache::lonacc
1436: SetHandler perl-script
1437: PerlHandler Apache::lonhelp
1438: ErrorDocument 500 /adm/errorhandler
1439: </LocationMatch>
1440:
1441: <LocationMatch "^/adm/helpmenu">
1442: AuthType LONCAPA
1443: Require valid-user
1444: PerlAuthzHandler Apache::lonacc
1445: SetHandler perl-script
1446: PerlHandler Apache::lonhelpmenu
1447: ErrorDocument 500 /adm/errorhandler
1448: </LocationMatch>
1449:
1450: <LocationMatch "^/adm/support">
1451: AuthType LONCAPA
1452: Require valid-user
1453: PerlAuthzHandler Apache::lonacc
1454: SetHandler perl-script
1455: PerlHandler Apache::lonsupportreq
1456: ErrorDocument 500 /adm/errorhandler
1457: </LocationMatch>
1458:
1459: <LocationMatch "^/adm/helpdesk">
1460: SetHandler perl-script
1461: PerlHandler Apache::lonsupportreq
1462: ErrorDocument 500 /adm/errorhandler
1463: </LocationMatch>
1464:
1465: <LocationMatch "^/adm/css/.*\.css$">
1466: SetHandler perl-script
1467: PerlHandler Apache::loncss
1468: ErrorDocument 500 /adm/errorhandler
1469: </LocationMatch>
1470:
1471: <LocationMatch "^/adm/coursecatalog">
1472: SetHandler perl-script
1473: PerlHandler Apache::coursecatalog
1474: ErrorDocument 500 /adm/errorhandler
1475: </LocationMatch>
1476:
1477: <LocationMatch "^/adm/resetpw">
1478: SetHandler perl-script
1479: PerlHandler Apache::resetpw
1480: ErrorDocument 500 /adm/errorhandler
1481: </LocationMatch>
1482:
1483: <LocationMatch "^/adm/selfenroll">
1484: SetHandler perl-script
1485: PerlHandler Apache::selfenroll
1486: ErrorDocument 500 /adm/errorhandler
1487: </LocationMatch>
1488:
1489: <LocationMatch "^/adm/createaccount">
1490: SetHandler perl-script
1491: PerlHandler Apache::createaccount
1492: ErrorDocument 500 /adm/errorhandler
1493: </LocationMatch>
1494:
1495: <LocationMatch "^/adm/dns">
1496: SetHandler perl-script
1497: PerlHandler Apache::londns
1498: ErrorDocument 500 /adm/errorhandler
1499: </LocationMatch>
1500:
1501: <LocationMatch "^/ajax/spellcheck">
1502: SetHandler perl-script
1503: PerlHandler Apache::spellcheck
1504: </LocationMatch>
1505:
1506:
1507: <LocationMatch "^/tiny/[\w.-]+/\w+$">
1508: AuthType LONCAPA
1509: Require valid-user
1510: PerlAuthzHandler Apache::lonacc
1511: SetHandler perl-script
1512: PerlHandler Apache::lontiny
1513: ErrorDocument 403 /adm/login
1514: ErrorDocument 406 /adm/roles
1515: ErrorDocument 500 /adm/errorhandler
1516: </LocationMatch>
1517:
1518: # ------------------------------------------------- Backdoor Adm Tests/Programs
1519:
1520: <Location /adm/test>
1521: PerlAccessHandler Apache::lonstatusacc
1522: SetHandler perl-script
1523: PerlHandler Apache::lontest
1524: </Location>
1525:
1526: # ------------------------------------------------------- Shutting down a child
1527:
1528: PerlChildExitHandler Apache::lonacc::goodbye
1529:
1530: #
1531: # LON-CAPA Section (extensions to access.conf permission configuration)
1532: #
1533: # =========================================================== Directory Options
1534:
1535: # Start out with "no"
1536:
1537: <Directory />
1538: Options None
1539: AllowOverride None
1540: <IfModule mod_authz_core.c>
1541: Require all denied
1542: </IfModule>
1543: <IfModule !mod_authz_core.c>
1544: order deny,allow
1545: deny from all
1546: </IfModule>
1547: </Directory>
1548:
1549: # Allow uploaded files to be served
1550:
1551: <Directory "/home/httpd/lonUsers">
1552: Options FollowSymLinks
1553: AllowOverride None
1554: <IfModule mod_authz_core.c>
1555: Require all granted
1556: </IfModule>
1557: <IfModule !mod_authz_core.c>
1558: order allow,deny
1559: allow from all
1560: </IfModule>
1561: </Directory>
1562:
1563: # Yes to symbolic links and server-side includes
1564:
1565: <Directory /home/httpd/html>
1566: Options FollowSymLinks
1567: AllowOverride None
1568: <IfModule mod_authz_core.c>
1569: Require all granted
1570: </IfModule>
1571: <IfModule !mod_authz_core.c>
1572: order allow,deny
1573: allow from all
1574: </IfModule>
1575: </Directory>
1576:
1577: # If it is in cgi-bin, then it can be executed as a CGI script.
1578:
1579: <Directory /home/httpd/cgi-bin>
1580: AllowOverride None
1581: Options ExecCGI FollowSymLinks
1582: <IfModule mod_authz_core.c>
1583: Require all granted
1584: </IfModule>
1585: <IfModule !mod_authz_core.c>
1586: order allow,deny
1587: allow from all
1588: </IfModule>
1589: </Directory>
1590:
1591: # Allow serving of files in prtspool
1592:
1593: <Directory "/home/httpd/prtspool/">
1594: Options FollowSymLinks
1595: AllowOverride None
1596: <IfModule mod_authz_core.c>
1597: Require all granted
1598: </IfModule>
1599: <IfModule !mod_authz_core.c>
1600: order allow,deny
1601: allow from all
1602: </IfModule>
1603: </Directory>
1604:
1605: # Allow serving of files in zipspool
1606:
1607: <Directory "/home/httpd/zipspool/">
1608: Options FollowSymLinks
1609: AllowOverride None
1610: <IfModule mod_authz_core.c>
1611: Require all granted
1612: </IfModule>
1613: <IfModule !mod_authz_core.c>
1614: order allow,deny
1615: allow from all
1616: </IfModule>
1617: </Directory>
1618:
1619: # Allow serving of files in captchaspool
1620:
1621: <Directory "/home/httpd/captchaspool/">
1622: Options FollowSymLinks
1623: AllowOverride None
1624: <IfModule mod_authz_core.c>
1625: Require all granted
1626: </IfModule>
1627: <IfModule !mod_authz_core.c>
1628: order allow,deny
1629: allow from all
1630: </IfModule>
1631: </Directory>
1632:
1633: <DirectoryMatch "^/home/httpd/html/priv/.+/">
1634: DirectoryIndex disabled
1635: </DirectoryMatch>
1636:
1637: <DirectoryMatch "^/home/httpd/html/res/.+/">
1638: DirectoryIndex disabled
1639: </DirectoryMatch>
1640:
1641: # ============================================================= Access Handlers
1642:
1643: # ------------------------------------------------- Allow server-status reports
1644: <Location /server-status>
1645: PerlAccessHandler Apache::lonstatusacc
1646: SetHandler server-status
1647: </Location>
1648:
1649: # ------------------------ Allow LON-CAPA "low-level" connection status reports
1650: <LocationMatch "^/+lon-status/.*">
1651: PerlAccessHandler Apache::lonstatusacc
1652: ErrorDocument 406 /adm/roles
1653: ErrorDocument 500 /adm/errorhandler
1654: </LocationMatch>
1655:
1656: # ------------------- Allow access to local system documentation from localhost
1657: Alias /doc /usr/doc
1658: <Directory /usr/doc>
1659: Options Indexes FollowSymLinks
1660: <IfModule mod_authz_host.c>
1661: Require local
1662: </IfModule>
1663: <IfModule !mod_authz_host.c>
1664: order deny,allow
1665: deny from all
1666: allow from localhost
1667: </IfModule>
1668: </Directory>
1669:
1670: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
1671: # ====================================== Internal Settings / Perl Configuration
1672:
1673: PerlSetVar lonVersion '<!-- VERSION -->'
1674: PerlSetVar lonIDsDir /home/httpd/lonIDs
1675: PerlSetVar lonBalanceDir /home/httpd/balanceIDs
1676: PerlSetVar lonDAVsessDir /home/httpd/webdav/sessionIDs
1677: PerlSetVar lonTabDir /home/httpd/lonTabs
1678: PerlSetVar lonUsersDir /home/httpd/lonUsers
1679: PerlSetVar lonIconsURL /adm/lonIcons
1680: PerlSetVar londPort 5663
1681: PerlSetVar lonSysEMail techsupport@loncapa.org
1682: PerlSetVar lonDaemons /home/httpd/perl
1683: PerlSetVar lonLib /home/httpd/lib
1684: PerlSetVar lonSockDir /home/httpd/sockets
1685: PerlSetVar lonSockCreate /home/httpd/sockets/common
1686: PerlSetVar lonDocRoot /home/httpd/html
1687: PerlSetVar lonPrtDir /home/httpd/prtspool
1688: PerlSetVar lonIncludes /home/httpd/html/res/adm/includes
1689: PerlSetVar lonZipDir /home/httpd/zipspool
1690: PerlSetVar lonCaptchaDir /home/httpd/captchaspool
1691: PerlSetVar lonCaptchaDb /home/httpd/captchadb
1692: PerlSetVar lonLTIDir /home/httpd/lonLTItmp
1693: PerlSetVar ltiIDsDir /home/httpd/ltiIDs
1694: PerlSetVar lonFontsDir /home/httpd/html/adm/fonts
1695: # & separated list of % separated fields in order of
1696: # - internal name to call it,
1697: # - regexp that it should match (done case-insensitively)
1698: # - regexp that is should not match (done case-insensitively)
1699: # - regexp that will pull out the version number into $1
1700: # - a number that describes the minimum version that has mathml support
1701: # - a number that describes the minimum number version that has unicode support
1702:
1703: 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
1704:
1705: PerlSetVar lonTextBrowsers windows\s+ce:lynx
1706: PerlSetVar lonScansDir /home/httpd/scantron
1707: PerlSetVar lonScriptTimeout 10
1708: PerlSetVar BugzillaHost https://bugs.loncapa.org/
1709: PerlSetVar FAQHost http://help.lon-capa.org/
1710: # -----------------------------------------------------------------------------
1711: # NOTE: lonSqlAccess key is the password for the MySQL user
1712: # www@localhost. This value must always be "localhostkey".
1713: # The only security risk occurs when somebody logs in as 'www' on your system
1714: # (in which case you have much bigger problems than whether or not they
1715: # can access the non-authoritative loncapa database on your machine).
1716:
1717: PerlSetVar lonSqlAccess localhostkey
1718:
1719: #----------------------------------------------------------------------------
1720: #
1721: # Parameters used by secure lond/lonc
1722:
1723: #
1724: # Secure lond/lonc require ssl certificate and private
1725: # key files to function correctly. The certificate
1726: # files need not be terribly secure, but the private key files
1727: # should be set up so that only www (the lonc/lond effective user)
1728: # can read them.
1729: #
1730: # The definition below is the full path to the directory that
1731: # contains the certificate and key files:
1732:
1733: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
1734:
1735: #
1736: # Secure lond/lonc require two certificates and a private host key.
1737: # The certificates required are that of the lonCAPA certificate authority
1738: # and the certificate that authority issued to this host.
1739: # lonnetCertificateAuthority is the name of the file that contains the
1740: # lonCAPA certificate authority's certificate.
1741: # lonnetCertificate is the name of the file that contains the certificate
1742: # issued to the host by the certificate authority.
1743: # Both of these variables are names of files assumed to be in
1744: # lonCertificateDirectory:
1745:
1746: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
1747: PerlSetVar lonnetCertificate lonhostcert.pem
1748:
1749: #
1750: # To generate the request for a certificate, and to negotiate the
1751: # initial ssl connection, the host requires a private key. This key
1752: # is created at lonCAPA install time. Did we mention above that it
1753: # should be set so that only www can read it? The variale below
1754: # is the name of the file relative to lonnetCertificateDirectory
1755: # that has the host's private key. Did we remember to tell you to
1756: # keep the permissions on that file set to rw------- (0600)?
1757: #
1758:
1759: PerlSetVar lonnetPrivateKey lonKey.pem
1760:
1761: # Did we mention that the file described above must have
1762: # permissions really locked down so that it can't be stolen?
1763:
1764: #-------------------------------------------------------------------------
1765:
1766: # Parameters that define where all the ssl stuff is that's needed
1767: # to generate certificate requests and, on a system that's a CA
1768: # the certificate authority.
1769: #
1770: # SSLProgram -> Path to the openssl command
1771: # SSLDirectory -> Directory containing ssl configuration files etc.
1772: # SSLCAConfig -> Name of the SSL config file for the certificate
1773: # Authority.
1774: # SSLCAFile -> Full path to the Certificate authority file
1775: # (on the cert manager system).
1776: # SSLEmail -> E-mail address of loncapa certificate manager.
1777: # The following are good for the loncapa redhat installs and
1778: # the loncapa certificate authority system:
1779: #
1780: PerlSetVar SSLProgram /usr/bin/openssl
1781: PerlSetVar SSLDirectory /usr/share/ssl
1782: PerlSetVar SSLCAConfig loncapaca
1783: PerlSetVar SSLCAFile /usr/share/ssl/loncapaca/cacert.pem
1784: PerlSetVar SSLEmail certificate@lon-capa.org
1785:
1786: #-------------------------------------------------------------------------
1787:
1788:
1789: # ====================================== Include support for SSL rewrites
1790:
1791: Include conf/loncapa_rewrite.conf
1792:
1793:
1794: # ====================================== Include machine-specific configuration
1795:
1796: Include conf/loncapa.conf
1797:
1798: # ================================================= Include local configuration
1799:
1800: Include conf/loncapa_apache_local*.conf
1801:
1802: # ================================================== Initiate mod_perl starting
1803:
1804: PerlRequire conf/startup.pl
1805: <IfDefine !MODPERL2>
1806: PerlFreshRestart On
1807: </IfDefine>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>