Skip to content

Instantly share code, notes, and snippets.

@linuxenko
Created December 17, 2018 18:43
Show Gist options
  • Save linuxenko/cefc731c170094f835794172887b1685 to your computer and use it in GitHub Desktop.
Save linuxenko/cefc731c170094f835794172887b1685 to your computer and use it in GitHub Desktop.
<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 /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment