Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Unwanted HTTP Auth on website

Discussion in 'General Discussion' started by Xavier Crespin, Apr 4, 2018.

Tags:
  1. Xavier Crespin

    Joined:
    Mar 21, 2016
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator
    Hello,

    I got a problem on a Cpanel hosted website, suddenly the website is password protected with a "authentication required" similar to when we enable directory privacy from the cpanel interface.
    A year ago we password protected this site using the embedded directory password protection, but the protection was removed once the site was publicly launched.

    In the "directory privacy" no directory is password protected, but i can see a .htpasswds at the root of the account, containing a tree of folder until our site's document root.
    Each folder contains an empty passwd file.

    What could i try to disable all http auth on this hosting?

    In advance, thank you
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    428
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @Xavier Crespin

    Can you check if there's an .htaccess file in the document root for the domain that contains an AuthType directive similar to this:

    Code:
    AuthType Basic
    AuthName "$user"
    AuthUserFile "$/path/to/.htpasswds/passwd/file"
    require valid-user
     
  3. Xavier Crespin

    Joined:
    Mar 21, 2016
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator
    Hey,

    As it turns out, a drupal module was responsible for the password invite, once the module was disabled, the site is accessible again.

    Thanks for your answer
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    428
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Xavier Crespin

    I'm happy to hear that you found the source of the issue! Thank you for letting us know.
     
Loading...

Share This Page