Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Created April 24, 2014 20:09
Show Gist options
  • Save bzerangue/11267868 to your computer and use it in GitHub Desktop.
Save bzerangue/11267868 to your computer and use it in GitHub Desktop.
php5-fpm.conf
<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
<Directory "/var/www/fastcgi">
Order allow,deny
<Files "php5.fastcgi">
Order deny,allow
</Files>
</Directory>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment