Created
September 23, 2019 16:47
-
-
Save habibun/683b45217b7f4968ad938909506d52c6 to your computer and use it in GitHub Desktop.
PHP-FPM with Apache 2.2
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> | |
ServerName xxx.local | |
ServerAlias www.xxx.local | |
AddHandler php7-fcgi .php | |
Action php7-fcgi /php7-fcgi | |
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi | |
# FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -host 127.0.0.1:9000 -pass-header Authorization | |
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php7.2-fpm.sock -pass-header Authorization | |
DocumentRoot /home/xxx/Projects/xxx/web | |
<Directory /home/xxx/Projects/xxx/web> | |
# enable the .htaccess rewrites | |
AllowOverride All | |
Order Allow,Deny | |
Allow from all | |
</Directory> | |
# uncomment the following lines if you install assets as symlinks | |
# or run into problems when compiling LESS/Sass/CoffeeScript assets | |
# <Directory /var/www/project> | |
# Options FollowSymlinks | |
# </Directory> | |
ErrorLog /var/log/apache2/tcb_error.log | |
CustomLog /var/log/apache2/tcb_access.log combined | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment