[Apache Login] - Computers



Search Tech-Forums - link takes you to our Forum's search page.

Note: The following is only a text archive!


To view the actual forum discussion, please visit our website at http://www.tech-forums.net

Pages:1



Apache Login

(Click here to view the original thread with full colors/images)



Posted by: greenbubble

I am running an apache server and I am trying to put a login and username on the server. I created an .htaccess file and had the following:

AuthType Basic
AuthName "This is a private area, please log in"
AuthUserFile "C:\Apache Files\mypassword.txt"
Require valid-user

It works when i type in localhost but when I do it with my ip it just keeps asking for my username and password over and over again. I can only log in when i go to 127.0.0.1

Whats goign on here?



Posted by: Kubel

Try using .htpasswd instead of mypassword.txt. You want to put your username first followed by a : followed by the encrypted password.

Example:

user:zHkmV9fohDkY6



Posted by: Trifid

[url]http://lifehacker.com/software/downloads/geek-to-live--how-to-set-up-a-personal-home-web-server-124212.php[/url]

^ what I followed when i first set it up.





vBulletin Copyright ©2000 - 2003, Jelsoft Enterprises Limited.


PPC Management
vB Easy Archive Final - Created by Xenon