Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Newbeee Question I know its been ask befor |
|
Author |
|
bakersfieldboy
Joined: 31 May 2009 Posts: 1 Location: bakersfield
|
Posted: Sun 31 May '09 5:55 Post subject: Newbeee Question I know its been ask befor |
|
|
Iam running a file server only, win2000 famly server editon.
I not sure if this is the right way but i drag what file's i want to be uploaded,
Into the (htdocsDIR folder) My Question is how can i get a password
log in started ? to make sure i am saying this right, If someone types in my http:// Name of site, up pops a log in password |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
xps400mediacenter
Joined: 07 Jun 2009 Posts: 4
|
Posted: Sun 07 Jun '09 22:04 Post subject: Re |
|
|
Hey, the easiest way is to make a htaccess file. just click start->Run->CMD then type cd C:\Program Files\Apache Software Foundation\Apache2.2\bin, then type htpasswd -c "C:\password.txt" Desired Username, (you can put anything in the desired username, just remember what you put), then enter your desired password. After that, just go to your htdocs folder, and right click->New->Text Document, name it what ever you want then open it up. and paste the following code in
AuthType Basic
AuthName "Please Login"
AuthUserFile "C:\password.txt"
AuthGroupFile /dev/null
<Limit GET POST PUT>
require valid-user
</Limit>
now click file->Save As->and type ".htaccess" and make sure that that its selected on all files, not text document. After that, your page/site is protected. if you want to add more users/passwords do the same step as before, but name the the password text in cmd to password2.txt and copy and paste the info from password2 into password.txt underneath the 1st user, or what ever user you doing. Finally, go to your httpd.conf and go to the line that says "AllowOverride" (its about 20 lines below where it says <directory/> )at the end of the AllowOverride line, type All 1 space after override. Hope this helps, let me know if you have any questions[/code] |
|
Back to top |
|
|
|
|
|
|