logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Newbeee Question I know its been ask befor
Author
bakersfieldboy



Joined: 31 May 2009
Posts: 1
Location: bakersfield

PostPosted: Sun 31 May '09 5:55    Post subject: Newbeee Question I know its been ask befor Reply with quote

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

PostPosted: Sun 31 May '09 18:44    Post subject: Reply with quote

see
http://httpd.apache.org/docs/2.2/howto/auth.html
Back to top
xps400mediacenter



Joined: 07 Jun 2009
Posts: 4

PostPosted: Sun 07 Jun '09 22:04    Post subject: Re Reply with quote

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


Reply to topic   Topic: Newbeee Question I know its been ask befor View previous topic :: View next topic
Post new topic   Forum Index -> Apache