Skip to content

Instantly share code, notes, and snippets.

@ajbonner
Last active December 15, 2015 11:39
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 ajbonner/5254108 to your computer and use it in GitHub Desktop.
Save ajbonner/5254108 to your computer and use it in GitHub Desktop.
Apache2 FastCGI and PHP-FPM Configuration
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment