Skip to content

Instantly share code, notes, and snippets.

@lucalbert
Last active December 6, 2016 10:47
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 lucalbert/6a74807a4c8fff00fbdb7ba6825074ee to your computer and use it in GitHub Desktop.
Save lucalbert/6a74807a4c8fff00fbdb7ba6825074ee to your computer and use it in GitHub Desktop.
Apache Vhost example config for use PHP7-FPM
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName example.tld
ServerAlias www.example.tld
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/php7.0-fpm.sock|fcgi://127.0.0.1:9001
</FilesMatch>
DocumentRoot /var/www/html/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment