Skip to content

Instantly share code, notes, and snippets.

@TheHiddenHaku
Created October 10, 2015 13:56
Show Gist options
  • Save TheHiddenHaku/b621f59d773a7d987cb0 to your computer and use it in GitHub Desktop.
Save TheHiddenHaku/b621f59d773a7d987cb0 to your computer and use it in GitHub Desktop.
Simple Apache 2.5 / PHP-Fpm Virtual Host
<VirtualHost *:80>
ServerAdmin admin@email.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /path/to/document/root
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /path/to/document/root>
AllowOverride All
Require all granted
Options All
<FilesMatch "\.php$">
Require all granted
SetHandler proxy:fcgi://127.0.0.1:9000
</FilesMatch>
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment