All pastes #623711 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-17 20:00 UTC
rendered paste body
# Define /phpldapadmin alias
<IfModule mod_alias.c>
    Alias /phpldapadmin /var/www/html/phpldapadmin-0.9.8.4
</IfModule>


<Directory /var/www/html/phpldapadmin-0.9.8.4/htdocs/>

    DirectoryIndex index.php
    Options +FollowSymLinks
    AllowOverride None

    Order allow,deny
    Allow from all

    <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>

      <IfModule !mod_php4.c>
        <IfModule mod_actions.c>
          <IfModule mod_cgi.c>
            AddType application/x-httpd-php .php

            Action application/x-httpd-php /cgi-bin/php4
          </IfModule>
        </IfModule>
      </IfModule>

    </IfModule>

</Directory>

# redirect to https when available (thanks omen@descolada.dartmouth.edu)
<IfModule mod_rewrite.c>
    <IfModule mod_ssl.c>
        <Location /phpldapadmin>
            RewriteEngine on
            RewriteCond %{HTTPS} !=on
            RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
        </Location>
    </IfModule>
</IfModule>

#        Redirect /phpldapadmin https://vpdc/phpldapadmin