File class_include.conf of Package class

#
# Configuration for ClaSS
#
# put the string CLASS in /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
# to enable the URL
# http://localhost/class

<IfDefine CLASS>
 UseCanonicalName On
 Alias /class "CLASSROOTDIR"

 <Directory CLASSROOTDIR>
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   AddType text/xml xml xsl

   <Files ~ .(inc.php|tpl)>
       Order allow,deny
       Deny from all
   </Files>

   <IfModule mod_php4.c>
       # php settings
       AcceptPathInfo on
       LimitRequestBody 0
       php_admin_flag magic_quotes_gpc on
       php_admin_flag magic_quotes_runtime Off
       php_admin_flag file_uploads on
       php_admin_flag short_open_tag Off
       php_admin_flag session.auto_start Off
       php_admin_flag session.bug_compat_warn Off
       php_admin_flag allow_url_fopen Off
       php_admin_flag safe_mode Off

       # make sure users dont change the following settings
       php_admin_flag register_globals Off

       # Max. file sizes to transfer via Moodle Webfrontend
       php_value upload_max_filesize 16M
       php_value post_max_size 16M
       php_value memory_limit "32M"
       php_value session.save_handler files
       php_value default_charset utf-8

       # improved security
       php_admin_value open_basedir "CLASSROOTDIR:CLASSCONFDIR"
   </IfModule>

   <IfModule mod_php5.c>
       # php settings
       AcceptPathInfo on
       LimitRequestBody 0
       php_admin_flag magic_quotes_gpc on
       php_admin_flag magic_quotes_runtime Off
       php_admin_flag file_uploads on
       php_admin_flag short_open_tag Off
       php_admin_flag session.auto_start Off
       php_admin_flag session.bug_compat_warn Off
       php_admin_flag allow_url_fopen Off
       php_admin_flag safe_mode Off

       # make sure users dont change the following settings
       php_admin_flag register_globals Off
       php_admin_flag allow_url_include Off

       # Max. file sizes to transfer via Moodle Webfrontend
       php_value upload_max_filesize 16M
       php_value post_max_size 16M
       php_value memory_limit "32M"
       php_value session.save_handler files
       php_value default_charset utf-8

       # improved security
       php_admin_value open_basedir "CLASSROOTDIR:CLASSCONFDIR"
   </IfModule>

   <IfModule mod_dir.c>
       DirectoryIndex index.php index.html index.htm
   </IfModule>

 </Directory>
</IfDefine>