.htacess on apche on windows 2003

i have apache installed on windows 2003

and the default page comes fine when i type

http://www.servername.com

i want to create a new folder private; e.g. http://www.servername.com/private
and when someone goes to that folder http://www.servername.com/private;  i need a pop up box come up where they
can enter login /password ( something like .htacess in linux )


ThankYou
RC

royalcyberAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DonConsolioCommented:
just create te same ".htaccess" file with same contents

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
royalcyberAuthor Commented:
u cannot create a file starting with "' . "  in windows
ravenplCommented:
Since when You can't create such file ?
Just checked on WinXP, 2K - works.
royalcyberAuthor Commented:
thankyou so much

I am doing this first time

where should i copy the .htacess file ( under \conf )

and what will be in the file if i want to have password authentication on the "private" folder :http://www.servername.com/private;


also do i have to change somehting on httpd.conf


thanks for all ur help



ravenplCommented:
.htaccess file applies to the directory (and subdirectories) where it exists. So Your .htaccess file should be placed in
private\ folder.
The simplest configuration for password authenticating is (put this into .htaccess)

AuthType Basic
AuthUserFile /path/to/.htpasswd_file
AuthName "Authorization required"
satisfy any
Require valid-user
Deny from all

where /path/to/.htpasswd in Your case might be "c:\apache\.htpasswd1"
After that, You have to create the .htpasswd file and users in it. You'll achieve this with htpasswd.exe shipped with apache.
ie: htpasswd.exe -c c:\path\to\.htaccess username
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.