Add line of code to Vhost?
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: [Moderator Note: Link to external URL removed per forum rules]
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:
[LIST]
CLOUDLINUX 6.9 x86_64 hyper-v " zero
cPanel & WHM 64.0 (build 11)
Any info would be appreciated,
Tony
-
Hello, Documentation on modifying a VirtualHost entry is available at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Thanks! 0 -
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. - ]
- #No basic authentication headers were found.
- #Nextcloud needs basic authentication headers for sync client on devices to work.
- SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
0 -
I'm happy to see it's working well. Thank you for updating us with the outcome. 0 -
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 0 -
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
Could you run the "/scripts/ensure_vhost_includes --all-users" command and let us know if that helps? Thank you.0
Please sign in to leave a comment.
Comments
5 comments