hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : htpasswd on a directory
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

htpasswd on a directory

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2002, 12:38 AM
Atif Munir Atif Munir is offline
Newbie
 
Join Date: Apr 2002
Posts: 28

htpasswd on a directory


Hi,
I am creating a passwd on a directoy with the help of htpasswd. But its not working and does not prompt for passwd.The .htaccess I have created is a under.
------------------------.htaccess------------------------------------------
AuthUserFile /var/www/html/.htpasswd
AuthName Admins
AuthType Basic
<Limit GET>
require valid-user
</Limit>
------------------------------------------------------------------------------
Then I use
#htpasswd -c /var/ww/html/.htpasswd atif

In this way passwd file is also created by still it does not ask for passwd and goes directly into the index.html.

Thanks in advance.
Atif

Reply With Quote


Sponsored Links
  #2  
Old 08-24-2002, 02:28 PM
bitserve bitserve is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Ann Arbor, MI
Posts: 2,978
Maybe you need AllowOverride in your httpd.conf for that dir?

__________________
-Mark Adams
www.bitserve.com - Secure Michigan web hosting for your business.
Only host still offering a full money back uptime guarantee and prorated refunds.
Offering advanced server management and security incident response!

Reply With Quote
  #3  
Old 08-24-2002, 06:06 PM
Studio64 Studio64 is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Atlanta, GA
Posts: 1,249
Simple quick .htaccess file that I know to work
Code:
AuthType Basic
AuthName "Secure Pages"
AuthUserFile /var/www/html/.htpasswd
require valid-user

__________________
char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
I wear a gray hat

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Windows Azure Offers Active Directory in General Availability Web Hosting News 2013-04-09 14:09:20
50c21c1c-1d94-4ed4-adac-26fa45a79943 Listing 2013-03-05 18:26:32
Get listed in WHIR Magazine's 6th Annual Hottest Hosts Issue coming in January 2013 Blog 2012-12-28 11:03:01
Web Host Hostway Offers Compliant Ready Upgrade for Hosted Exchange Web Hosting News 2012-07-30 14:26:14
Get listed in WHIR Magazine's 5th Annual Hottest Hosts Issue coming in January 2012 Blog 2011-10-18 18:35:27


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting 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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?