Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


.htaccess Responding - .passwd Failing

Posted on 2004-10-24
Medium Priority
Last Modified: 2011-08-18
I'm told by my web host that my domain resides on an apache server.  I've read numerous tutorials to learn how to create .htaccess and .htpasswd files with the hope of offering controlled access to one folder within my domain.  Tech support does not offer assistance in this area, although I've been told by tech support that the server will respond to these files.

I have created both files being careful to use the syntax in the tutorials but have unsuccessful at gaining access to the restricted area.  It appears that .htaccess works (based on recognition of AuthName that I'm using). I've used several web-based sites to create encrypted passwords and pasted the results into my .htpasswd file using the recommended syntax. Permissions have been set at 644 for both files.  I've transferred them as ASCII files, etc.

I'm working on the premise that the problem is either the path to the password file in .htaccess is incorrect or that my webhost somehow prevents the use of these files in spite of what I'm told.  For the path, I've used "/folderwithpassword/.htpasswd" and "htpp://www.mydomain.com/folderwithpassword/.htpasswd" with no luck. Is it likely the problem may be the host or am I overlooking something?

Thanks for your assistance.
Question by:OTRRonnie
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Accepted Solution

periwinkle earned 500 total points
ID: 12392806
The path to the password file should be the full path to that file from the root of the server;  it is likely something like:


or the like.

The password file should be OUTSIDE the web hierarchy if at all possible.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question