File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33
44# Export these so that apache can use them in the configuration files directly
55export APP_WEBROOT=${APP_WEBROOT:-/ app/ html}
6- export PHP_HOSTNAME =${PHP_HOSTNAME :- php}
7- export PHP_PORT =${PHP_PORT :- 9000}
6+ export PHPFPM_HOSTNAME =${PHPFPM_HOSTNAME :- php}
7+ export PHPFPM_PORT =${PHPFPM_PORT :- 9000}
88
99# List of ports to listen to, space separated list
1010WEB_PORTS_HTTP=${WEB_PORTS_HTTP:- 80}
1111
1212echo " * DocumentRoot: $APP_WEBROOT "
13- echo " * PHP-FPM: $PHP_HOSTNAME : $PHP_PORT "
13+ echo " * PHP-FPM: $PHPFPM_HOSTNAME : $PHPFPM_PORT "
1414
1515# If env variables SSL_KEY and SSL_CRT are set, configure apache for SSL access
1616if [ ! -z " $SSL_KEY " ] && [ ! -z " $SSL_CRT " ]; then
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ SSLProxyProtocol all -SSLv3
1010
1111 # Handle PHP with PHP-FPM
1212 <FilesMatch "\.php$">
13- SetHandler "proxy:fcgi://${PHP_HOSTNAME }:${PHP_PORT }"
13+ SetHandler "proxy:fcgi://${PHPFPM_HOSTNAME }:${PHPFPM_PORT }"
1414 </FilesMatch>
1515
1616 # If the php file doesn't exist, disable the proxy handler.
Original file line number Diff line number Diff line change 44
55 # Handle PHP with PHP-FPM
66 <FilesMatch "\.php$">
7- SetHandler "proxy:fcgi://${PHP_HOSTNAME }:${PHP_PORT }"
7+ SetHandler "proxy:fcgi://${PHPFPM_HOSTNAME }:${PHPFPM_PORT }"
88 </FilesMatch>
99
1010 # If the php file doesn't exist, disable the proxy handler.
You can’t perform that action at this time.
0 commit comments