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