The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

password protected sub-dir, but root dir prompt for password

Discussion in 'General Discussion' started by phytonet, Dec 15, 2004.

  1. phytonet

    phytonet Registered

    Joined:
    Nov 26, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    hi there, i tried from cpanle to setup password protection for one sub directory, which is working, when entering the sub-dir, like http://example.com/abc/cde/, it prompts for login.

    but the problem is when entering the site, like http://example.com, it also pops up and prompts for username/password.

    i have tried to remove fp extensions and restarted apache, but that didn't help.

    i checked the root dir, it has a blank .htaccess, zero byte.

    what could go wrong. pls advise. thanks for your help.
     
    #1 phytonet, Dec 15, 2004
    Last edited: Dec 15, 2004
  2. Choppy

    Choppy Member

    Joined:
    May 8, 2002
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I got the same problem with one client site also..

    Really silly. Though hope someone can help us out here.

    Please

    Thanks Phillip
     
  3. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

    Hi phytonet,

    I hope this problem due to .htaccess file.
    Run this command on the home directory of the domain example.com

    find /home/example | grep .htaccess

    After run this command you will get some .htaccess file. If you get a .htaccess file in the images directory (or, similar directory) remove it.

    eg: /home/example/public_html/images/.htaccess

    May be it will help to solve your problem.
     
  4. dlbelton

    dlbelton Registered

    Joined:
    Jan 11, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    also... if you password protected a subfolder, and you try to load a page from an area that is not password protected that refers to a file in the protected folder, you will get the message.

    Make sure that the page you are trying to load does not reference any images or files in the password procted folder.
     
Loading...

Share This Page