Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created November 23, 2014 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BtbN/ed33aa83bdc61f5ef6ab to your computer and use it in GitHub Desktop.
Save BtbN/ed33aa83bdc61f5ef6ab to your computer and use it in GitHub Desktop.
/etc/apache2/modules.d/70_php.conf
<IfDefine FASTCGI>
Action php-fpm-apache /fcgi-bin/php5-fpm-apache
Alias /fcgi-bin/php5-fpm-apache /fcgi-bin-php5-fpm-apache
<Location /fcgi-bin/php5-fpm-apache>
Require env REDIRECT_STATUS
</Location>
FastCgiExternalServer /fcgi-bin-php5-fpm-apache -socket /run/php-fpm-apache.sock -pass-header Authorization -idle-timeout 300
</IfDefine>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment