Skip to content

Commit

Permalink
apache enable authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvin Rizki committed Jan 26, 2019
1 parent b3f625c commit 8f8dd41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8f8dd41

Please sign in to comment.