Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    lchiang is offline Junior Member
    Join Date
    Apr 2009
    Posts
    2

    Default HELP! my .htaccess and .htpasswd doesn't work

    Hi folks,
    I've uploaded both files to my folder under /docs/mystuff
    I get the pop up window asking for authentication.
    but i authenticate and I get pop up over and over again

    here are what the files look like...

    .HTACCESS
    AuthType Basic
    AuthName "Members Only"
    AuthUserFile /var/www/domains/mydomain.com/docs/mystuff/.htpasswd
    <limit GET PUT POST>
    require valid-user
    </limit>

    .HTPASSWD
    username:$1$blahblahstringoflettesandnumbers/ <<this is the MD5 one whatever that means

    Do i need the DES encrypted one as well? or just one? and if so, which one?

    Any help is appreciated.
    Thanks in Advance

    ps. i have kept the file names in lowercase.
    i have removed the .txt windows creates
    I have uploaded in both binary and ascii both to no avail
    i have uploaded the htpasswd to both /mystuff folder and in /docs folder (btw which is proper location?)

  2. #2
    tima is offline Administrator
    Join Date
    Apr 2008
    Posts
    191

    Default Re: HELP! my .htaccess and .htpasswd doesn't work

    Hi There,

    I just tried this and it works for me, you can use DES or md5, I don't think it matters. But one thing I noticed is that the Wiki article shows a "/" at the end of each line in the .htpasswd file, which I believe is incorrect.

    Try removing the / from the end of those usernameassword lines, and let us know if that fixes the problem.

    Thanks,
    Tim Attwood
    Product Manager
    myhosting.com

  3. #3
    lchiang is offline Junior Member
    Join Date
    Apr 2009
    Posts
    2

    Default Re: HELP! my .htaccess and .htpasswd doesn't work

    Hi Tima,
    Thanks. I tried removing the / but still no access. I am getting prompted though still.
    what should the chmod setting for this folder be?

  4. #4
    tima is offline Administrator
    Join Date
    Apr 2008
    Posts
    191

    Default Re: HELP! my .htaccess and .htpasswd doesn't work

    I don't think the chmod matters, I didn't modify it from default in my test. You could try re-generating the passwords again, just to make sure there was no copy/paste error. Since they are encrypted its hard to check this easily.
    Tim Attwood
    Product Manager
    myhosting.com


 

Similar Threads

  1. Replies: 2
    Last Post: 2011-03-03, 10:19 AM

Posting Permissions

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