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