Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 14, 2012 9:39 am 
Offline
Junior Member

Joined: Sun May 13, 2012 10:02 am
Posts: 20
Hi,

Im new to this but I used shell to run this command:

cd /etc/nginx
htpasswd -b htpass user temp

Then in my config I have this:

auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;


When I go to my site I see the login box but using the "user / temp" credentials dont work. Can someone explain what I am doing wrong please?

James


Top
   
PostPosted: Thu Jun 14, 2012 9:48 am 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
When running the htpasswd command you are calling the file "htpass", while in your Nginx configuration you're calling it "htpasswd". Is your Nginx configuration pointing to the right file?

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group