Forum Moderators: phranque
i have to deny access to a certain directory /private on my apache. it should only be accessible for users of a 'realm nws55'. i have already read a lot about authentication but still cannot find the solution. first of all i do not quite understand the term 'realm'. anyway, I was told that this realm should contain some specific users.
what i've done so far: created the directory private/, created the password file with htpasswd.
well, i don't really know how to configure the .htaccess file and/or access.conf.
does anybody know?
thanks
reinhard
*realm* is a term used to describe what will appear in the password dialog provided by most browsers when using Apache's AuthName [httpd.apache.org] directive. You know, that little window that pops up and prompts you for a username and password to enter your "Top Secret" area. "Top Secret" is a name you would assign to the area and that is what is known as the "Realm".
You may also want to check into Apache's mod_access [httpd.apache.org] module. It also offers some powerful options to allow or deny access to certain files or directories.