Solved

.htaccess Responding - .passwd Failing

Posted on 2004-10-24
175 Views
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.
0
Question by:OTRRonnie
    1 Comment
     
    LVL 15

    Accepted Solution

    by:
    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:

    /home/yourname/web/.htpasswd

    or the like.

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Prepare to Pass the CompTIA A+ 900 Series Exam

    CompTIA aims to adapt its A+ Certification to reflect the most current knowledge and skills needed by today's IT professionals--and this year's 2016 exam is harder than ever. This certification is one of the most highly-respected and sought after in IT.

    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 Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now