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