# ::maintainer::
#
# Define /phpldapadmin alias
#
# note: use "ldap" instead of "phpldapadmin" for adding some sloppy security
#
<IfModule mod_alias.c>
    Alias /ldap ::ldap.phpldapadmin_dir::
</IfModule>

# You can also use phpLDAPadmin as a VirtualHost
# <VirtualHost *:*>
#     ServerName ldap.example.com
#     ServerAdmin root@example.com
#     DocumentRoot /usr/share/phpldapadmin
#     ErrorLog logs/ldap.example.com-error.log
#     CustomLog logs/ldap.example.com-access.log common
# </VirtualHost>

<Directory ::ldap.phpldapadmin_dir::/>

    DirectoryIndex index.php
    Options +FollowSymLinks
    AllowOverride None

    Order allow,deny
-ku-temp-tag-for-inserting-allow-ku-

    <IfModule mod_mime.c>

	<IfModule mod_php4.c>
        	AddType application/x-httpd-php .php
        	php_flag magic_quotes_gpc Off
        	php_flag track_vars On
        	php_flag register_globals On
        	php_value include_path .
	</IfModule>

	#[ku]
	<IfModule mod_php5.c>
        	AddType application/x-httpd-php .php
  		php_flag magic_quotes_gpc Off
  		php_flag track_vars On
        	php_flag register_globals On
  		php_value include_path .
	</IfModule>

	#[ku]
	php_value memory_limit ::ldap.php_memory_limit::

	# [ku] redirige obbligatoriamente su https
	#
	<IfModule mod_rewrite.c>
		RewriteEngine	On
		RewriteCond     %{SERVER_PORT} ^80$
		#RewriteRule	^(.*) https://%{SERVER_NAME}/$1 [R,L]
		RewriteRule	^(.*) https://%{SERVER_NAME}/ldap
	</IfModule>


    </IfModule>

</Directory>

