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!

SOLVED Add line of code to Vhost?

Discussion in 'CloudLinux' started by TonyE, Apr 14, 2017.

  1. TonyE

    TonyE Registered

    Joined:
    Dec 16, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Gold Coast QLD AU
    cPanel Access Level:
    Website Owner
    Hi
    I am getting this error line in the log file:

    '401 No basic authentication headers were found'

    And need to add this line below to the vhost file as per this thread: "No basic authentication headers were found" message

    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    before the line "ProxyPassMatch".

    Only I do not know what file to add this to as the instructions are not for Cloudlinux.

    I am running:
    • CLOUDLINUX 6.9 x86_64 hyper-v – zero
    • cPanel & WHM 64.0 (build 11)
    Any info would be appreciated,
    Tony
     
    #1 TonyE, Apr 14, 2017
    Last edited by a moderator: Apr 14, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. TonyE

    TonyE Registered

    Joined:
    Dec 16, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Gold Coast QLD AU
    cPanel Access Level:
    Website Owner
    Thank you cPanelMichael
    Got it to work, suprise!

    FYI
    I created the folder structure /etc/apache2/conf.d/userdata/ssl/2_4
    I created a file authmod.conf in this folder.
    authmod.conf has the following lines.
    1. #No basic authentication headers were found.
    2. #Nextcloud needs basic authentication headers for sync client on devices to work.
    3. SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see it's working well. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. G3NSVRV

    G3NSVRV Registered

    Joined:
    Jun 13, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    SANTIAGO
    cPanel Access Level:
    DataCenter Provider
    hello,
    Same here. The folders /etc/apache2/conf.d/userdata/ssl/2_4/ doesn't not exists. I've tried to create the same path but nothing happen before rebuildhttpdconf
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you run the "/scripts/ensure_vhost_includes --all-users" command and let us know if that helps?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice