|
Free Stuff: links: Neue Surf Tips : know-how : Zitate : Spam Strike : HTML Checker! : Link Checker : Cartoons About IC: friends: lust und frust : guestbook : what's new |
|
[ Basic Auth - Check_user_id Phase ] server-info
Install and configure /server-info tool: Authorization DirectivesTraditional WWW Authorization:
<Location /member-area>
AuthType Basic
AuthName "Your Protected Area"
AuthUserFile /usr/local/etc/httpd/cgi-bin/www.passwd
Require valid-user
</Location>
<Location /status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from .foo.com
</Location>
Print long file names completely
<Location /your-directory>
AuthType Basic
AuthName "InfoCopter Protected Area"
AuthUserFile /usr/local/etc/httpd/cgi-bin/www.passwd
Require valid-user
IndexOptions +NameWidth=* +FoldersFirst +ScanHTMLTitles
</Location>
Work-around if URLs always need a trailing slashRedirectMatch ^/softw$ /softw/LDAP AuthorizationLDAP_Servers ldap.yourhost.ch LDAP_Port 389 LDAP_BindName cn=ldapadmin, ou=xyz, o=yourorg, c=ch LDAP_BindPass @yourpass LDAP_CacheTime 30 LDAP_CacheMemory 419200 LDAP_homeAttr homeDirectory LDAP_Base dc=yourhost, dc=ch, ou=yourunit, o=yourorg, c=ch LDAP_SearchMode onelevel LDAP_useridAttr uid <Location /admin> AuthType Basic AuthName yourauthname LDAP_Auth On LDAP_Base dc=yourhost, dc=ch, ou=yourunit, o=yourorg, c=ch LDAP_SearchMode onelevel LDAP_useridAttr uid LDAP_passwordAttr userPassword LDAP_IPRange 195.112.64.0/24 212.35.60.0/22 212.35.40.0/24 LDAP_IPDirectory /mnt/filer1/abc/def LDAP_IPCookieName yourhost_userid LDAP_billingGroupMemberAttr member LDAP_setEnvAttrs uid homeDirectory language cn um userPassword require valid-user </Location> To make the server accept connections on two specified interfaces and port numbers, use Listen 192.170.2.1:80 Listen 192.170.2.5:8000 apache.txtBasic Auth - Check_user_id PhaseThe check_user_id (authen) phase is called whenever the requested file or directory is password protected. This, in turn, requires that the directory be associated with AuthName, AuthType and at least one require directive. http://perl.apache.org/docs/2.0/user/handlers/http.html |
|||||||
|
Know-How home
| Must Read
| What's new?
| iC Site Map link search |
©1998-2004 infoCopter
|