Skip to content

Instantly share code, notes, and snippets.

@zukka77
Last active November 28, 2017 23:14
Show Gist options
  • Save zukka77/9d2e33784aeb58bb332e4b67bdd33a44 to your computer and use it in GitHub Desktop.
Save zukka77/9d2e33784aeb58bb332e4b67bdd33a44 to your computer and use it in GitHub Desktop.
#IP
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://localhost:9000"
</FilesMatch>
DirectoryIndex index.html index.php
#UNIX SOCKET
<FilesMatch "\.php$">
SetHandler "proxy:unix:/var/run/php-fpm/php-fpm.sock|fcgi://localhost/"
</FilesMatch>
<Proxy "fcgi://localhost/" enablereuse=on max=10>
</Proxy>
DirectoryIndex index.html index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment