Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Prompt user name on directory

Prompt user name on directory
Thread Tools
farmer
Junior Member
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jan 14, 2003, 11:40 AM
 
I have a directory on a webserver that I want to have prompt for username and password when someone tries to access it. I am unix newbie, so don't assume I know any commands already.


Thanks in advance
     
infiniti
Junior Member
Join Date: Apr 2000
Location: Canada
Status: Offline
Reply With Quote
Jan 14, 2003, 10:15 PM
 
     
Camelot
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Jan 15, 2003, 12:19 AM
 
You need to create a .htaccess file in the directory. This tells the server how to control access to the files.

A fairly comprehensive discussion of the .htacess file can be found at:

http://apache-server.com/tutorials/A...-htaccess.html
Gods don't kill people - people with Gods kill people.
     
farmer  (op)
Junior Member
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jan 15, 2003, 12:22 PM
 
thanks!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:34 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,