Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2013
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Webpage Not Available after .htaccess uploaded...

    Hey all,

    I want a directory to be password protected on my website. I uploaded a .htaccess file and .htpasswd file in the directory that I want protected. I am using a Linux Shared Hosting Account.

    This is the code I have for .htaccess

    AuthUserFile /home/content/66/10805966/html/.htpasswd
    AuthGroupFile /dev/null
    AuthName "EnterPassword"
    AuthType Basic

    require valid-user

    I know I have the absolute path correct. Whenever I delete this .htaccess file, the directory can be accessed but when I upload the .htaccess file, the directory itself "cannot be found" when I try to go to it on my browser.

    My .htpasswd file is uploaded in the same directory. Below is what I have in that file:

    test:$apr1$I6n8.6oO$H8jqsfOB/67OyZttkh…

    Does anyone know what is wrong? How can I fix this problem?

    Thanks in advance!

  • #2
    New Coder
    Join Date
    Apr 2014
    Location
    Daytona Beach, FL
    Posts
    54
    Thanks
    0
    Thanked 1 Time in 1 Post
    your problem is this line:
    AuthUserFile /home/content/66/10805966/html/.htpasswd

    if you you are cerain this is the correct url try this..

    ./AuthUserFile /home/content/66/10805966/html/.htpasswd



    There is little information you gave us about your sitemap so we can not assist you further.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,927
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    Quote Originally Posted by Richard_Grant View Post
    if you you are cerain this is the correct url try this..

    ./AuthUserFile /home/content/66/10805966/html/.htpasswd
    What’s that supposed to do? AuthUserFile is an Apache directive, I don’t think randomly putting a period and a forward slash in front of it is helping in any way.

    To the OP: Just as a side note: according to the above linked Apache documentation:
    Make sure that the AuthUserFile is stored outside the document tree of the web-server. Do not put it in the directory that it protects. Otherwise, clients may be able to download the AuthUserFile.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •