diff --git a/Build/Dockerfile b/Build/Dockerfile index c58de77..d2c3375 100644 --- a/Build/Dockerfile +++ b/Build/Dockerfile @@ -95,6 +95,9 @@ RUN docker-php-ext-enable mongo intl imagick rdkafka mongodb memcache ps apcu # Use the default production configuration RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" +# Enable Authorization header in apache +RUN echo "SetEnvIf Authorization \"(.*)\" HTTP_AUTHORIZATION=\$1" >> /etc/apache2/apache2.conf + # Enable apache2 modules RUN a2enmod rewrite diff --git a/docker-compose.yml b/docker-compose.yml index a65e5ce..35ed3c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: php-apache2: - image: cikupin/php-apache2:5.6 + image: cikupin/php-apache2:5.6-1 container_name: php-apache2-5.6 volumes: - ./etc/apache2/sites-available/000-default.conf:/etc/apache2/sites-available/000-default.conf