File openadmin_include.conf of Package openadmin

#
# Configuration for Open Admin for Schools
#

#<VirtualHost *:80>
#   UseCanonicalName On
#   ServerAdmin root@yourdomain
#   DocumentRoot /srv/www/openadmin/school/admin
#   ServerName stpeter-admin.mysd.ca
#   ErrorLog /var/log/apache2/openadmin-error-log
#   CustomLog /var/log/apache2/openadmin-access-log common	

   # Make .shtml files be parsed
   AddType text/html .shtml
   AddHandler server-parsed .shtml
   DirectoryIndex index.shtml

   ScriptAlias /cgi-bin/ "/srv/www/openadmin/school/cgi/"

  <Directory /srv/www/openadmin>
       Order allow,deny
       Deny from all
  </Directory>
      
  <Directory /srv/www/openadmin/school/admin>

    Options +Includes  # turns on Server Side Includes (SSI)
      # to parse date (and user in teacher)

    AuthType Basic
    AuthName Admin
    AuthUserFile /etc/openadmin/auth_users/admins
    <Limit GET POST>
       require valid-user
    </Limit>
  </Directory>

  <Directory /srv/www/openadmin/school/cgi>
    AuthType Basic
    AuthName Admin
    AuthUserFile /etc/openadmin/auth_users/admins
    <Limit GET POST>
       require valid-user
    </Limit>
  </Directory>

#</VirtualHost>