Created
February 27, 2015 05:22
-
-
Save kenju254/a0d855e58a76a52e9f6d to your computer and use it in GitHub Desktop.
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
#Echo & Co. Changes | |
# Load PHP-FPM via mod_fastcgi | |
LoadModule fastcgi_module /usr/local/opt/mod_fastcgi/libexec/mod_fastcgi.so | |
<IfModule fastcgi_module> | |
FastCgiConfig -maxClassProcesses 1 -idle-timeout 1500 | |
# Prevent accessing FastCGI alias paths directly | |
<LocationMatch "^/fastcgi"> | |
<IfModule mod_authz_core.c> | |
Require env REDIRECT_STATUS | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order Deny,Allow | |
Deny from All | |
Allow from env=REDIRECT_STATUS | |
</IfModule> | |
</LocationMatch> | |
FastCgiExternalServer /php-fpm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 1500 | |
ScriptAlias /fastcgiphp /php-fpm | |
Action php-fastcgi /fastcgiphp | |
# Send PHP extensions to PHP-FPM | |
AddHandler php-fastcgi .php | |
# PHP options | |
AddType text/html .php | |
DirectoryIndex index.php index.html | |
</IfModule> | |
# Include our VirtualHosts | |
Include /Users/your-current-user/Sites/httpd-vhosts.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment