Skip to content

Commit 6d533f6

Browse files
authored
Merge pull request #6 from cron-eu/ecs-compatibility
Avoid PHP_PORT variable name as it conflicts with "links: php:php"
2 parents 7dbb88c + 7c8b0f7 commit 6d533f6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

files/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ set -e
33

44
# Export these so that apache can use them in the configuration files directly
55
export 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
1010
WEB_PORTS_HTTP=${WEB_PORTS_HTTP:-80}
1111

1212
echo "* 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
1616
if [ ! -z "$SSL_KEY" ] && [ ! -z "$SSL_CRT" ]; then

files/httpd-vhost-ssl.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

files/httpd-vhost.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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.

0 commit comments

Comments
 (0)