.htaccess für 1 Benutzer

AuthName "Bitte anmelden: "
AuthType Basic
AuthUserFile /srv/www/htdocs/
Require valid-user
php_value register_globals on
Passwort verschlüsseln

.htaccess mit LDAP Authentifizierung für alle Benutzer

AuthType Basic
AuthName "Privater Bereich"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://,dc=bgweiz,dc=at
Require valid-user

.htaccess mit LDAP Authentifizierung einer Gruppe

AuthType Basic
AuthName "5B - Rainer"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPUrl ldap://,dc=at?uid
AuthLDAPGroupAttributeIsDN off
AuthLDAPGroupAttribute memberUid
Require ldap-group cn=rainer5b,ou=groups,dc=bgweiz,dc=at
Options +Indexes

Directory Listing für Ordner aktivieren

Options +Indexes 

Zugriff über vhosts

  • /etc/apache2/vhosts.d/
    <Directory "/srv/www/htdocs/">
        DAV On
        DAVDepthInfinity on
        Options FollowSymlinks Indexes MultiViews
        AllowOverride None
        Order Deny,Allow
        AuthType Basic
        AuthName "WebDAV"
        AuthBasicProvider ldap
        AuthzLDAPAuthoritative off
        AuthLDAPURL "ldap://,dc=at"
        Require user helmuth.peer

Error Reporting

# to stop php startup errors
php_flag display_startup_errors off
# to stop all php errors and warning
php_flag display_errors off
# report everything except run-time notices.
php_value error_reporting 8191
# report both fatal and non-fatal compile-time warnings by the Zend Engine
php_value error_reporting 128
# report run-time notices, compile-time parse errors, run-time errors and warnings
php_value error_reporting 8
# report fatal run-time errors and unrecoverable errors
php_value error_reporting 1
htaccess.txt · Zuletzt geändert: 2011/11/19 17:04 von admin