Annotation of loncom/loncapa_apache.conf, revision 1.3

1.1       harris41    1: ##
                      2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
                      3: ##
1.3     ! matthew     4: ## $Id: loncapa_apache.conf,v 1.2 2002/05/16 00:06:23 harris41 Exp $
1.1       harris41    5: ##
                      6: ## 1/11/2002 - Scott Harrison
                      7: ## 2/19/2002 - Scott Harrison
                      8: ## 2/28/2002 - Scott Harrison
                      9: ## 3/2/2002 - Scott Harrison
                     10: ## 5/12/2002 - Scott Harrison
                     11: 
                     12: #
                     13: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
                     14: #
                     15: # ======================================================================== User
                     16: 
                     17: DocumentRoot "/home/httpd/html"
                     18: 
                     19: # ======================================================================== User
                     20: 
                     21: User www
                     22: Group www
                     23: 
                     24: # ======================================================= Shared Object Modules
                     25: 
                     26: LoadModule perl_module       modules/libperl.so
                     27: AddModule mod_perl.c
                     28: 
                     29: # =============================================================== Miscellaneous
                     30: 
                     31: ServerAdmin korte@lite.msu.edu
                     32: ExtendedStatus On
                     33: 
                     34: #
                     35: # LON-CAPA Section (extensions to srm.conf name space servicing)
                     36: #
                     37: # ===================================================================== Aliases
                     38: 
                     39: Alias /prtspool/ /home/httpd/prtspool/
1.3     ! matthew    40: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
1.1       harris41   41: 
                     42: # ================================================================= Directories
                     43: 
                     44: # ------------------------------------------------------------- Access Handlers
                     45: 
                     46: <LocationMatch "^/res.*">
                     47: PerlAccessHandler       Apache::lonacc
                     48: PerlHeaderParserHandler Apache::lonrep
                     49: ErrorDocument     403 /adm/login
                     50: ErrorDocument     404 /adm/notfound.html
                     51: ErrorDocument     406 /adm/roles
                     52: ErrorDocument	  500 /adm/errorhandler
                     53: </LocationMatch>
                     54: 
                     55: <LocationMatch "^/priv.*">
                     56: PerlAccessHandler Apache::loncacc
                     57: SetHandler        perl-script
                     58: PerlHandler       Apache::lonconstruct
                     59: ErrorDocument     403 /adm/login
                     60: ErrorDocument     404 /adm/notfound.html
                     61: ErrorDocument     406 /adm/unauthorized.html
                     62: ErrorDocument	  500 /adm/errorhandler
                     63: </LocationMatch>
                     64: 
                     65: <LocationMatch "^/raw.*">
                     66: PerlAccessHandler Apache::lonracc
                     67: </LocationMatch>
                     68: 
                     69: <LocationMatch "^/\~.*">
                     70: PerlAccessHandler Apache::loncacc
                     71: ErrorDocument     403 /adm/login
                     72: ErrorDocument     404 /adm/notfound.html
                     73: ErrorDocument     406 /adm/unauthorized.html
                     74: ErrorDocument	  500 /adm/errorhandler
                     75: AllowOverride None
                     76: </LocationMatch>
                     77: 
                     78: # ------------------------------------------------------------------------- RAT
                     79: 
                     80: <LocationMatch "^/\~.*\.sequence$">
                     81: SetHandler perl-script
                     82: PerlHandler Apache::lonratedt
                     83: </LocationMatch>
                     84: 
                     85: <LocationMatch "^/\~.*\.page$">
                     86: SetHandler perl-script
                     87: PerlHandler Apache::lonratedt
                     88: </LocationMatch>
                     89: 
                     90: <LocationMatch "^/\~.*\/ratserver$">
                     91: SetHandler perl-script
                     92: PerlHandler Apache::lonratsrv
                     93: </LocationMatch>
                     94: 
                     95: <Location /adm/ratparms>
                     96: PerlAccessHandler       Apache::lonacc
                     97: SetHandler perl-script
                     98: PerlHandler Apache::lonratparms
                     99: ErrorDocument     403 /adm/login
                    100: ErrorDocument	  500 /adm/errorhandler
                    101: </Location>
                    102: 
                    103: # --------------------------------------------- Resource Space Content Handlers
                    104: 
                    105: <LocationMatch "^/res.*/$">
                    106: SetHandler perl-script
                    107: PerlHandler Apache::lonindexer
                    108: </LocationMatch>
                    109: 
                    110: <LocationMatch "^/(res|\~).*\.tex$">
                    111: SetHandler perl-script
                    112: PerlHandler Apache::lontex
                    113: </LocationMatch>
                    114: 
                    115: <LocationMatch "^/res/.*\.page$>
                    116: SetHandler perl-script
                    117: PerlHandler Apache::lonpage
                    118: </LocationMatch>
                    119: 
                    120: <LocationMatch "^/res/.*\.sequence$>
                    121: SetHandler perl-script
                    122: PerlHandler Apache::lonsequence
                    123: </LocationMatch>
                    124: 
                    125: <LocationMatch "^/res/.*\.meta$>
                    126: SetHandler perl-script
                    127: PerlHandler Apache::lonmeta
                    128: </LocationMatch>
                    129: 
                    130: <LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$">
                    131: SetHandler perl-script
                    132: PerlHandler Apache::lonxml
                    133: </LocationMatch>
                    134: 
                    135: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
                    136: SetHandler perl-script
                    137: PerlHandler Apache::lonhomework
                    138: </LocationMatch>
                    139: 
                    140: <LocationMatch "^/adm/wrapper/">
                    141: PerlAccessHandler       Apache::lonacc
                    142: SetHandler perl-script
                    143: PerlHandler Apache::lonwrapper
                    144: ErrorDocument     403 /adm/login
                    145: ErrorDocument	  500 /adm/errorhandler
                    146: </LocationMatch>
                    147: 
                    148: # -------------------------------------------------------------- Admin Programs
                    149: 
                    150: <Location /adm/statistics>
                    151: PerlAccessHandler       Apache::lonacc
                    152: SetHandler perl-script
                    153: PerlHandler Apache::lonstatistics
                    154: ErrorDocument     403 /adm/login
                    155: ErrorDocument	  500 /adm/errorhandler
                    156: </Location>
                    157: 
                    158: <Location /adm/roles>
                    159: PerlAccessHandler       Apache::lonacc
                    160: SetHandler perl-script
                    161: PerlHandler Apache::lonroles
                    162: ErrorDocument     403 /adm/login
                    163: ErrorDocument	  500 /adm/errorhandler
                    164: </Location>
                    165: 
                    166: <Location /adm/login>
                    167: SetHandler perl-script
                    168: PerlHandler Apache::lonlogin
                    169: </Location>
                    170: 
                    171: <Location /adm/logout>
                    172: PerlAccessHandler       Apache::lonacc
                    173: SetHandler perl-script
                    174: PerlHandler Apache::lonlogout
                    175: ErrorDocument     403 /adm/login
                    176: </Location>
                    177: 
                    178: <Location /adm/authenticate>
                    179: SetHandler perl-script
                    180: PerlHandler Apache::lonauth
                    181: </Location>
                    182: 
                    183: <Location /adm/annotations>
                    184: PerlAccessHandler       Apache::lonacc
                    185: SetHandler perl-script
                    186: PerlHandler Apache::admannotations
                    187: ErrorDocument     403 /adm/login
                    188: ErrorDocument	  500 /adm/errorhandler
                    189: </Location>
                    190: 
                    191: <Location /adm/bookmarks>
                    192: PerlAccessHandler       Apache::lonacc
                    193: SetHandler perl-script
                    194: PerlHandler Apache::admbookmarks
                    195: ErrorDocument     403 /adm/login
                    196: ErrorDocument	  500 /adm/errorhandler
                    197: </Location>
                    198: 
                    199: <Location /adm/flip>
                    200: PerlAccessHandler       Apache::lonacc
                    201: SetHandler perl-script
                    202: PerlHandler Apache::lonpageflip
                    203: ErrorDocument     406 /adm/roles
                    204: ErrorDocument     403 /adm/login
                    205: ErrorDocument	  500 /adm/errorhandler
                    206: </Location>
                    207: 
                    208: <Location /adm/ambiguous>
                    209: PerlAccessHandler       Apache::lonacc
                    210: SetHandler perl-script
                    211: PerlHandler Apache::lonambiguous
                    212: ErrorDocument     403 /adm/login
                    213: ErrorDocument	  500 /adm/errorhandler
                    214: </Location>
                    215: 
                    216: <Location /adm/email>
                    217: PerlAccessHandler       Apache::lonacc
                    218: SetHandler perl-script
                    219: PerlHandler Apache::lonmsg
                    220: ErrorDocument     403 /adm/login
                    221: ErrorDocument	  500 /adm/errorhandler
                    222: </Location>
                    223: 
                    224: <Location /adm/parmset>
                    225: PerlAccessHandler       Apache::lonacc
                    226: SetHandler perl-script
                    227: PerlHandler Apache::lonparmset
                    228: ErrorDocument     403 /adm/login
                    229: ErrorDocument     406 /adm/roles
                    230: ErrorDocument	  500 /adm/errorhandler
                    231: </Location>
                    232: 
                    233: <Location /adm/grades>
                    234: PerlAccessHandler       Apache::lonacc
                    235: SetHandler perl-script
                    236: PerlHandler Apache::grades
                    237: ErrorDocument     403 /adm/login
                    238: ErrorDocument     406 /adm/roles
                    239: ErrorDocument	  500 /adm/errorhandler
                    240: </Location>
                    241: 
                    242: <Location /adm/createcourse>
                    243: PerlAccessHandler       Apache::lonacc
                    244: SetHandler perl-script
                    245: PerlHandler Apache::loncreatecourse
                    246: ErrorDocument     403 /adm/login
                    247: ErrorDocument     406 /adm/roles
                    248: ErrorDocument	  500 /adm/errorhandler
                    249: </Location>
                    250: 
                    251: <Location /adm/createuser>
                    252: PerlAccessHandler       Apache::lonacc
                    253: SetHandler perl-script
                    254: PerlHandler Apache::loncreateuser
                    255: ErrorDocument     403 /adm/login
                    256: ErrorDocument     406 /adm/roles
                    257: ErrorDocument	  500 /adm/errorhandler
                    258: </Location>
                    259: 
                    260: <Location /adm/publish>
                    261: PerlAccessHandler       Apache::lonacc
                    262: SetHandler perl-script
                    263: PerlHandler Apache::lonpublisher
                    264: ErrorDocument     403 /adm/login
                    265: ErrorDocument     404 /adm/notfound.html
                    266: ErrorDocument     406 /adm/unauthorized.html
                    267: ErrorDocument	  500 /adm/errorhandler
                    268: </Location>
                    269: 
                    270: <LocationMatch "^/\~.*/$">
                    271: PerlAccessHandler       Apache::loncacc
                    272: SetHandler perl-script
                    273: PerlHandler Apache::lonpubdir
                    274: ErrorDocument     403 /adm/login
                    275: ErrorDocument     404 /adm/notfound.html
                    276: ErrorDocument     406 /adm/unauthorized.html
                    277: ErrorDocument	  500 /adm/errorhandler
                    278: </LocationMatch>
                    279: 
                    280: <Location /adm/pubdir>
                    281: PerlAccessHandler       Apache::lonacc
                    282: SetHandler perl-script
                    283: PerlHandler Apache::lonpubdir
                    284: ErrorDocument     403 /adm/login
                    285: ErrorDocument     404 /adm/notfound.html
                    286: ErrorDocument     406 /adm/unauthorized.html
                    287: ErrorDocument	  500 /adm/errorhandler
                    288: </Location>
                    289: 
                    290: <Location /adm/retrieve>
                    291: PerlAccessHandler       Apache::lonacc
                    292: SetHandler perl-script
                    293: PerlHandler Apache::lonretrieve
                    294: ErrorDocument     403 /adm/login
                    295: ErrorDocument     404 /adm/notfound.html
                    296: ErrorDocument     406 /adm/unauthorized.html
                    297: ErrorDocument	  500 /adm/errorhandler
                    298: </Location>
                    299: 
                    300: <Location /adm/cfile>
                    301: PerlAccessHandler       Apache::lonacc
                    302: SetHandler perl-script
                    303: PerlHandler Apache::loncfile
                    304: ErrorDocument     403 /adm/login
                    305: ErrorDocument     404 /adm/notfound.html
                    306: ErrorDocument     406 /adm/unauthorized.html
                    307: ErrorDocument	  500 /adm/errorhandler
                    308: </Location>
                    309: 
                    310: <Location /adm/diff>
                    311: PerlAccessHandler       Apache::lonacc
                    312: SetHandler perl-script
                    313: PerlHandler Apache::londiff
                    314: ErrorDocument     403 /adm/login
                    315: ErrorDocument     404 /adm/notfound.html
                    316: ErrorDocument     406 /adm/unauthorized.html
                    317: ErrorDocument	  500 /adm/errorhandler
                    318: </Location>
                    319: 
                    320: <Location /adm/upload>
                    321: PerlAccessHandler       Apache::lonacc
                    322: SetHandler perl-script
                    323: PerlHandler Apache::lonupload
                    324: ErrorDocument     403 /adm/login
                    325: ErrorDocument     404 /adm/notfound.html
                    326: ErrorDocument     406 /adm/unauthorized.html
                    327: ErrorDocument	  500 /adm/errorhandler
                    328: </Location>
                    329: 
                    330: <Location /adm/assesscalc>
                    331: PerlAccessHandler       Apache::lonacc
                    332: SetHandler perl-script
                    333: PerlHandler Apache::lonspreadsheet
                    334: ErrorDocument     403 /adm/login
                    335: ErrorDocument     406 /adm/roles
                    336: ErrorDocument	  500 /adm/errorhandler
                    337: </Location>
                    338: 
                    339: <Location /adm/studentcalc>
                    340: PerlAccessHandler       Apache::lonacc
                    341: SetHandler perl-script
                    342: PerlHandler Apache::lonspreadsheet
                    343: ErrorDocument     403 /adm/login
                    344: ErrorDocument     406 /adm/roles
                    345: ErrorDocument	  500 /adm/errorhandler
                    346: </Location>
                    347: 
                    348: <Location /adm/classcalc>
                    349: PerlAccessHandler       Apache::lonacc
                    350: SetHandler perl-script
                    351: PerlHandler Apache::lonspreadsheet
                    352: ErrorDocument     403 /adm/login
                    353: ErrorDocument     406 /adm/roles
                    354: ErrorDocument	  500 /adm/errorhandler
                    355: </Location>
                    356: 
                    357: <Location /adm/chart>
                    358: PerlAccessHandler       Apache::lonacc
                    359: SetHandler perl-script
                    360: PerlHandler Apache::lonchart
                    361: ErrorDocument     403 /adm/login
                    362: ErrorDocument     406 /adm/roles
                    363: ErrorDocument	  500 /adm/errorhandler
                    364: </Location>
                    365: 
                    366: <Location /adm/dropadd>
                    367: PerlAccessHandler       Apache::lonacc
                    368: SetHandler perl-script
                    369: PerlHandler Apache::londropadd
                    370: ErrorDocument     403 /adm/login
                    371: ErrorDocument     406 /adm/roles
                    372: ErrorDocument	  500 /adm/errorhandler
                    373: </Location>
                    374: 
                    375: <Location /adm/printout>
                    376: PerlAccessHandler       Apache::lonacc
                    377: SetHandler perl-script
                    378: PerlHandler Apache::lonprintout
                    379: ErrorDocument     403 /adm/login
                    380: ErrorDocument	  500 /adm/errorhandler
                    381: </Location>
                    382: 
                    383: <Location /adm/feedback>
                    384: PerlAccessHandler       Apache::lonacc
                    385: SetHandler perl-script
                    386: PerlHandler Apache::lonfeedback
                    387: ErrorDocument     403 /adm/login
                    388: ErrorDocument	  500 /adm/errorhandler
                    389: </Location>
                    390: 
                    391: <Location /adm/evaluate>
                    392: PerlAccessHandler       Apache::lonacc
                    393: SetHandler perl-script
                    394: PerlHandler Apache::lonevaluate
                    395: ErrorDocument     403 /adm/login
                    396: ErrorDocument	  500 /adm/errorhandler
                    397: </Location>
                    398: 
                    399: <Location /adm/preferences>
                    400: PerlAccessHandler       Apache::lonacc
                    401: SetHandler perl-script
                    402: PerlHandler Apache::lonpreferences
                    403: ErrorDocument     403 /adm/login
                    404: ErrorDocument	  500 /adm/errorhandler
                    405: </Location>
                    406: 
                    407: <Location /adm/assignments>
                    408: PerlAccessHandler       Apache::lonacc
                    409: SetHandler perl-script
                    410: PerlHandler Apache::lonassignments
                    411: ErrorDocument     403 /adm/login
                    412: ErrorDocument     406 /adm/roles
                    413: ErrorDocument	  500 /adm/errorhandler
                    414: </Location>
                    415: 
                    416: <Location /adm/communicate>
                    417: PerlAccessHandler       Apache::lonacc
                    418: SetHandler perl-script
                    419: PerlHandler Apache::loncommunicate
                    420: ErrorDocument     403 /adm/login
                    421: ErrorDocument	  500 /adm/errorhandler
                    422: </Location>
                    423: 
                    424: <Location /adm/searchcat>
                    425: PerlAccessHandler       Apache::lonacc
                    426: SetHandler perl-script
                    427: PerlHandler Apache::lonsearchcat
                    428: ErrorDocument     403 /adm/login
                    429: ErrorDocument	  500 /adm/errorhandler
                    430: </Location>
                    431: 
                    432: <Location /adm/navmaps>
                    433: PerlAccessHandler       Apache::lonacc
                    434: SetHandler perl-script
                    435: PerlHandler Apache::lonnavmaps
                    436: ErrorDocument     403 /adm/login
                    437: ErrorDocument     406 /adm/roles
                    438: ErrorDocument	  500 /adm/errorhandler
                    439: </Location>
                    440: 
                    441: <Location /adm/groupsort>
                    442: PerlAccessHandler	Apache::lonacc
                    443: SetHandler perl-script
                    444: PerlHandler Apache::groupsort
                    445: ErrorDocument     403 /adm/login
                    446: ErrorDocument	  500 /adm/errorhandler
                    447: </Location>
                    448: 
                    449: <Location /adm/errorhandler>
                    450: SetHandler perl-script
                    451: PerlHandler Apache::lonerrorhandler
                    452: </Location>
                    453: 
                    454: # ------------------------------------------------- Backdoor Adm Tests/Programs
                    455: 
                    456: <Location /cgi-bin/loncron.pl>
                    457: AuthName "LON-CAPA Network Administration"
                    458: AuthType Basic
                    459: AuthUserFile /home/httpd/lonTabs/htpasswd
                    460: require user lonadm
                    461: </Location>
                    462: 
                    463: <Location /cgi-bin/lonversions.pl>
                    464: AuthName "LON-CAPA Network Administration"
                    465: AuthType Basic
                    466: AuthUserFile /home/httpd/lonTabs/htpasswd
                    467: require user lonadm
                    468: </Location>
                    469: 
                    470: <Location /cgi-bin/clusterstatus.pl>
                    471: AuthName "LON-CAPA Network Administration"
                    472: AuthType Basic
                    473: AuthUserFile /home/httpd/lonTabs/htpasswd
                    474: require user lonadm
                    475: </Location>
                    476: 
                    477: <Location /cgi-bin/metadata_keywords.pl>
                    478: AuthName "LON-CAPA Network Administration"
                    479: AuthType Basic
                    480: AuthUserFile /home/httpd/lonTabs/htpasswd
                    481: require user lonadm
                    482: </Location>
                    483: 
                    484: <Location /adm/test>
                    485: AuthName "LON-CAPA Network Administration"
                    486: AuthType Basic
                    487: AuthUserFile /home/httpd/lonTabs/htpasswd
                    488: require user lonadm
                    489: SetHandler perl-script
                    490: PerlAccessHandler Apache::lonacc
                    491: PerlHandler Apache::lontest
                    492: </Location>
                    493: 
                    494: # ------------------------------------------------------- Shutting down a child
                    495: 
                    496: PerlChildExitHandler Apache::lonnet::goodbye
                    497: 
                    498: #
                    499: # LON-CAPA Section (extensions to access.conf permission configuration)
                    500: #
                    501: # =========================================================== Directory Options
                    502: 
                    503: # Start out with "no"
                    504: 
                    505: <Directory />
                    506: Options None
                    507: AllowOverride None
                    508: </Directory>
                    509: 
                    510: # Yes to symbolic links and server-side includes
                    511: 
                    512: <Directory /home/httpd/html>
                    513: Options Includes FollowSymLinks
                    514: AllowOverride None
                    515: order allow,deny
                    516: allow from all
                    517: </Directory>
                    518: 
                    519: # If it is in cgi-bin, then it can be executed as a CGI script.
                    520: 
                    521: <Directory /home/httpd/cgi-bin>
                    522: AllowOverride None
                    523: Options ExecCGI
                    524: </Directory>
                    525: 
                    526: # ============================================================= Access Handlers
                    527: 
                    528: # ------------------------------------------------- Allow server-status reports
                    529: <Location /server-status>
                    530: SetHandler server-status
                    531: AuthName "LON-CAPA Network Administration"
                    532: AuthType Basic
                    533: AuthUserFile /home/httpd/lonTabs/htpasswd
                    534: require user lonadm
                    535: </Location>
                    536: 
                    537: # ------------------------ Allow LON-CAPA "low-level" connection status reports
                    538: <Location /lon-status>
                    539: AuthName "LON-CAPA Network Administration"
                    540: AuthType Basic
                    541: AuthUserFile /home/httpd/lonTabs/htpasswd
                    542: require user lonadm
                    543: </Location>
                    544: 
                    545: # ------------------- Allow access to local system documentation from localhost
                    546: Alias /doc /usr/doc
                    547: <Directory /usr/doc>
                    548: order deny,allow
                    549: deny from all
                    550: allow from localhost
                    551: Options Indexes FollowSymLinks
                    552: </Directory>
                    553: 
                    554: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
                    555: # ====================================== Internal Settings / Perl Configuration
                    556: 
                    557: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
                    558: PerlSetVar       lonTabDir    /home/httpd/lonTabs
                    559: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
                    560: PerlSetVar       lonIconsURL  /adm/lonIcons
                    561: PerlSetVar       londPort     5663
                    562: PerlSetVar       lonSysEMail  korte@lite.msu.edu
                    563: PerlSetVar       lonDaemons   /home/httpd/perl
                    564: PerlSetVar       lonSockDir   /home/httpd/sockets
                    565: PerlSetVar       lonDocRoot   /home/httpd/html
                    566: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
                    567: PerlSetVar       lonBrowsDet  netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999&amaya:amaya:mozilla:V(\d+\.\d+)\s:1
1.2       harris41  568: 
                    569: # -----------------------------------------------------------------------------
                    570: # NOTE: lonSqlAccess key is the password for the MySQL user
                    571: # www@localhost.  This value must always be "localhostkey".
                    572: # The only security risk occurs when somebody logs in as 'www' on your system
                    573: # (in which case you have much bigger problems than whether or not they
                    574: # can access the non-authoritative loncapa database on your machine).
                    575: 
                    576: PerlSetVar       lonSqlAccess   localhostkey
                    577: 
                    578: # -----------------------------------------------------------------------------
                    579: 
                    580: 
                    581: # ================================================== Initiate mod_perl starting
                    582: 
                    583: Include conf/loncapa.conf
1.1       harris41  584: 
                    585: # ================================================== Initiate mod_perl starting
                    586: 
                    587: PerlRequire      conf/startup.pl
                    588: PerlFreshRestart On

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>