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