Enable fastcgi on SSL Virtualhost

Posted by ggstevens on Server Fault See other posts from Server Fault or by ggstevens
Published on 2014-05-30T18:41:43Z Indexed on 2014/06/01 3:29 UTC
Read the original article Hit count: 425

Filed under:
|

Debian 7.5

My VirtualHost for port 80 works fine with the ifmodule for fastcgi. However, it does not work with the VirtualHost for port 443.

SSL/https:// was working fine until I added the following:

<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
</IfModule>

When I try to restart Apache I get an error:

Reloading web server config: apache2 failed!

However, if I remove the FastCgiExternalServer line, it works.

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about php