Jump to content

Recommended Posts

Posted (edited)

Hi all,

I've been struggling to get my server to support auth headers for the API. I am using Plesk to manage everything and the forum is hosted on Apache with FPM.

What I've tried so far

  1. Adding CGIPassAuth on to top of .htaccess for the /api/ subfolder
  2. Adding to top FcgidPassHeader Authorization of .htaccess 
  3. I tried adding both to the apache directive 
  4. I've tried adding FcgidPassHeader AUTHORIZATION to the primary fcgid.conf file and restarting the service
  5. I've also tried doing a combo of all the above
  6. I tried changing SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 to SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1 in .htaccess

I've tried a few things that I can't remember but I think I've tried everything that I've found from Googling maybe I missed something else that I can try.

I'll appreciate all the help that I can get. 

Thanks! 🙂

Quick edit:

I am running

PHP 8.2.17 with FPM/FastCGI
Server version: Apache/2.4.37 (AlmaLinux)
Server built:   Oct 18 2023 12:00:09
 

Edited by flashpoint
Posted
50 minutes ago, flashpoint said:

PHP 8.2.17

PHP 8.2 is not supported. You will need to run 8.0 or 8.1. 

Posted
8 minutes ago, Jim M said:

PHP 8.2 is not supported. You will need to run 8.0 or 8.1. 

No problem, downgraded to 8.0.3. I am still getting the same issue.

Posted

You'd be best to contact your hosting company to ask why its not supporting the headers in the first instance

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...