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.

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:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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:
    37,163
    Likes Received:
    1,294
    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.
     
  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:
    37,163
    Likes Received:
    1,294
    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.
     
Loading...

Share This Page