File nagtrap-httpd.conf of Package nagtrap

#
# Configuration for NagTrap
#
# Please add NAGTRAP to APACHE_SERVER_FLAGS 
# in /etc/sysconfig/apache2 
#
# via 'a2enflag NAGTRAP' as root
#

<IfDefine NAGTRAP>

  Alias /nagtrap ___PHPDIR___

  <Directory "___PHPDIR___">
   Options FollowSymLinks
   AllowOverride None

   <IfModule mod_authz_core.c>
         Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
      Order allow,deny
      Allow from all
   </IfModule>

   <Files ~ .(inc.php|tpl)>
     <IfModule mod_authz_core.c>
         Require all denied
     </IfModule>
     <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
     </IfModule>
   </Files>

   <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 Off
       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 On
       # make sure users dont change the following settings
       php_admin_flag register_globals Off
       php_admin_flag allow_url_include Off

       # improved security
       php_admin_value open_basedir "___PHPDIR___:/tmp:/usr/bin:/etc/nagtrap"
   </IfModule>
  </Directory>

</IfDefine>
openSUSE Build Service is sponsored by