Created
October 10, 2015 13:56
-
-
Save TheHiddenHaku/b621f59d773a7d987cb0 to your computer and use it in GitHub Desktop.
Simple Apache 2.5 / PHP-Fpm Virtual Host
This file contains hidden or 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 [email protected] | |
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