a140e37928063afd3e728a463f7875fec93bd303
[matthijs/servers/drsnuggles.git] / etc / phpldapadmin / apache.conf
1 # Define /phpldapadmin alias, this is the default
2 <IfModule mod_alias.c>
3     Alias /phpldapadmin /usr/share/phpldapadmin/htdocs
4 </IfModule>
5
6 # You can also use phpLDAPadmin as a VirtualHost
7 # <VirtualHost *:*>
8 #     ServerName ldap.example.com
9 #     ServerAdmin root@example.com
10 #     DocumentRoot /usr/share/phpldapadmin
11 #     ErrorLog logs/ldap.example.com-error.log
12 #     CustomLog logs/ldap.example.com-access.log common
13 # </VirtualHost>
14
15 <Directory /usr/share/phpldapadmin/htdocs/>
16
17     DirectoryIndex index.php
18     Options +FollowSymLinks
19     AllowOverride None
20
21     Order allow,deny
22     Allow from all
23
24     <IfModule mod_mime.c>
25
26       <IfModule mod_php5.c>
27         AddType application/x-httpd-php .php
28
29         php_flag magic_quotes_gpc Off
30         php_flag track_vars On
31         php_flag register_globals On
32         php_value include_path .
33       </IfModule>
34
35       <IfModule !mod_php5.c>
36         <IfModule mod_actions.c>
37           <IfModule mod_cgi.c>
38             AddType application/x-httpd-php .php
39             Action application/x-httpd-php /cgi-bin/php5
40           </IfModule>
41           <IfModule mod_cgid.c>                                                    
42             AddType application/x-httpd-php .php                                   
43             Action application/x-httpd-php /cgi-bin/php5                           
44            </IfModule>
45         </IfModule>
46       </IfModule>
47
48     </IfModule>
49
50 </Directory>
51