[EMAIL PROTECTED] wrote:
There still seems to be alot of discrepancy on this issue. Whether or
not to use a .htaccess or directive command to protect a directory so
I'm looking for some answers on what works the best usually.
Protecting a folder called xxxx
Alias /xxx "D:/"
<Directory "D:/">
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
use .htaccess or how can I use the above directive to only allow a
specific user in?
The directives can be put in either place (apache config or .htaccess
file). However, <Directory> cannot be used inside an .htaccess file, so
you'll have to put the .htaccess file in the directory you wish to protect.
I assume you want the user to be prompted for a username/password when
they visit the directory? Basic HTTP authentication will accomplish that
for you.
http://httpd.apache.org/docs/2.2/howto/auth.html
--
Justin Pasher
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]