Nextcloud and Moodle configuration on Litespeed server


I have installed a Moodle (LMS applucation) in and Nextcloud on

There is a possibility to include Nextcloud as a repository in File Picker in Moodle.
I did all require configurations in both Moodle and Nextcloud. There is an option to connect the system account to Nextcloud and when I’m trying to connect it, I face with an issue. Here is the error:
After several days of searching, I found HERE that I need to enable three modes in Apache ( mod_headers , mod_rewrite and mod_env)

As I’m using a shared web hosting, I contacted to admin to make them enabled for my service. However, they said they are using Litespeed rather than Apache. BTW they tried to find a solution and said the problem is possibly with the following code and asked me to contact Nextcloud if I can find a working solution:

      <IfModule mod_setenvif.c>
        <IfModule mod_fcgid.c>
           SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
           RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
        <IfModule mod_proxy_fcgi.c>
           SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1

Also, there as mentioned in Moodle document, it should recognize Endpoint automatically from the Nextcloud url. However, it didn’t. So I tried to create to endpoint myself, and it didn’t solve my problem. What I need is to see Nextcould Repository in File Picker of Moodle. I explained all setting and errors in screenshot, Please look at this LINK, too.

I’m not sure what to do to solve the problem. It would be very appreciated if someone help me out this problem.
Thanks in advance.

Still no reply ?
Anybody to help solving my issue