Benutzer-Werkzeuge

Webseiten-Werkzeuge


htaccess

.htaccess für 1 Benutzer

AuthName "Bitte anmelden: "
AuthType Basic
AuthUserFile /srv/www/htdocs/av.anger.st/admin/.htpasswd
Require valid-user
php_value register_globals on
.htpasswd
admin:airmhs80mdlos
Passwort verschlüsseln

.htaccess mit LDAP Authentifizierung für alle Benutzer

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

.htaccess mit LDAP Authentifizierung einer Gruppe

AuthType Basic
AuthName "5B - Rainer"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPUrl ldap://10.67.0.5/dc=bgweiz,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/bgweiz.at/conf
    <Directory "/srv/www/htdocs/calendar.bgweiz.at/peer">
        DAV On
        DAVDepthInfinity on
        Options FollowSymlinks Indexes MultiViews
        AllowOverride None
        Order Deny,Allow
        <LimitExcept GET PROPFIND OPTIONS REPORT>
        AuthType Basic
        AuthName "WebDAV"
        AuthBasicProvider ldap
        AuthzLDAPAuthoritative off
        AuthLDAPURL "ldap://10.67.0.5/dc=bgweiz,dc=at"
        Require user helmuth.peer
        </LimitExcept>
    </Directory>

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