Created
October 10, 2015 13:56
Simple Apache 2.5 / PHP-Fpm Virtual Host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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