Apache + FastCGI

Configuring Apache + FastCGI for Webasyst


If the PHP interpreter on your server is run by web server Apache via the CGI/FastCGI interface then the Authorization header may be not available by default, which is crucial for some Webasyst apps.

Possible solutions

Method 1

Enable the following directive in the web server configuration:

CGIPassAuth on

Method 2

Add the following parameter to the domain’s virtual host:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Method 3

Add the following lines to the website’s root .htaccess file:

<ifmodule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]