Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've seen tutorials on how to show a little box on the main page that you have to know the password to, but I want it where that textbox pops up and asks for a username and password, like the style used when you're trying to get into a router's settings. I am just using the built in Apache that came with the Mac, I have a website set up, but can't figure out how to get the password protection. Any links to information about this type of password protection would be good. Thanks.

share|improve this question

migrated from stackoverflow.com Aug 5 '10 at 20:55

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

Your question really belongs on ServerFault.com, but the answer is to use .htaccess auth files. Here's a tutorial on Apache authentication.

share|improve this answer
    
ah. cool. didnt know about that site. thanks. –  marty Aug 5 '10 at 20:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.