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