alterway / docker-php

Docker PHP
MIT License
101 stars 45 forks source link

Apache default virtualhost config blocks configuration of DocumentRoot environment variable #11

Closed deichholz closed 5 years ago

deichholz commented 6 years ago

using alterway/php:5.5-apache

When trying to specify environment variable HTTPD__DocumentRoot, I discovered that there was a behavior change between PHP 5.4 and PHP 5.5 where the installation created apache2/sites-enabled/000-default.conf specifying DocumentRoot which overrode the DocumentRoot declaration in apache2/conf-enabled/40-user.conf.

For a work around, I'm overloading the default.conf with an empty file. volumes: