# Z-Push - ActiveSync over-the-air
Alias /Microsoft-Server-ActiveSync /srv/www/htdocs/z-push2/index.php

<Directory /srv/www/htdocs/z-push2>
    # Don't list a directory index, follow symlinks (maybe state dir is somewhere linked)
    Options -Indexes +FollowSymLinks

    <IfModule mod_php5.c>
       # Z-push requirements
       php_value magic_quotes_gpc off
       php_value magic_quotes_runtime off
       php_value register_globals off
       php_value short_open_tag on

       # Optional
       # php_value display_errors off

       # Allow passing variable by reference
       php_value allow_call_time_pass_reference on
    </IfModule>
    
    # Security
    # Don't allow .htaccess Overrides, disallow access to files
    AllowOverride none
    
    <Files "debug.txt">
    	<IfVersion >= 2.4>
    		Require all denied
  		</IfVersion>
  		<IfVersion < 2.4>
    		Order allow,deny
    		Deny from all
  		</IfVersion>
    </Files>
    <Files "config.php">
    	<IfVersion >= 2.4>
    		Require all denied
  		</IfVersion>
  		<IfVersion < 2.4>
    		Order allow,deny
    		Deny from all
  		</IfVersion>
    </Files>
    
</Directory>
