File tree 5 files changed +30
-0
lines changed 5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,12 @@ RUN a2enmod \
158
158
status \
159
159
ssl
160
160
161
+ # without the following line we get "AH00558: apache2: Could not reliably determine the server's fully qualified domain name"
162
+ # autorise .htaccess files
163
+ RUN \
164
+ echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
165
+ sed -i '/<Directory \/ var\/ www\/ >/,/<\/ Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
166
+
161
167
# Install composer (latest version) | prestissimo to speed up composer
162
168
RUN curl -sS https://getcomposer.org/installer | php && \
163
169
mv composer.phar /usr/local/bin/composer && \
Original file line number Diff line number Diff line change @@ -171,6 +171,12 @@ RUN a2enmod \
171
171
status \
172
172
ssl
173
173
174
+ # without the following line we get "AH00558: apache2: Could not reliably determine the server's fully qualified domain name"
175
+ # autorise .htaccess files
176
+ RUN \
177
+ echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
178
+ sed -i '/<Directory \/ var\/ www\/ >/,/<\/ Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
179
+
174
180
# Install composer (latest version) | prestissimo to speed up composer
175
181
RUN curl -sS https://getcomposer.org/installer | php && \
176
182
mv composer.phar /usr/local/bin/composer && \
Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ RUN a2enmod \
172
172
status \
173
173
ssl
174
174
175
+ # without the following line we get "AH00558: apache2: Could not reliably determine the server's fully qualified domain name"
176
+ # autorise .htaccess files
177
+ RUN \
178
+ echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
179
+ sed -i '/<Directory \/ var\/ www\/ >/,/<\/ Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
180
+
175
181
# Install composer (latest version) | prestissimo to speed up composer
176
182
RUN curl -sS https://getcomposer.org/installer | php && \
177
183
mv composer.phar /usr/local/bin/composer && \
Original file line number Diff line number Diff line change @@ -184,6 +184,12 @@ RUN a2enmod \
184
184
status \
185
185
ssl
186
186
187
+ # without the following line we get "AH00558: apache2: Could not reliably determine the server's fully qualified domain name"
188
+ # autorise .htaccess files
189
+ RUN \
190
+ echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
191
+ sed -i '/<Directory \/ var\/ www\/ >/,/<\/ Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
192
+
187
193
# Install composer (latest version) | prestissimo to speed up composer
188
194
RUN curl -sS https://getcomposer.org/installer | php && \
189
195
mv composer.phar /usr/local/bin/composer && \
Original file line number Diff line number Diff line change @@ -183,6 +183,12 @@ RUN a2enmod \
183
183
status \
184
184
ssl
185
185
186
+ # without the following line we get "AH00558: apache2: Could not reliably determine the server's fully qualified domain name"
187
+ # autorise .htaccess files
188
+ RUN \
189
+ echo "ServerName localhost" >> /etc/apache2/apache2.conf; \
190
+ sed -i '/<Directory \/ var\/ www\/ >/,/<\/ Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
191
+
186
192
# Install composer (latest version) | prestissimo to speed up composer
187
193
RUN curl -sS https://getcomposer.org/installer | php && \
188
194
mv composer.phar /usr/local/bin/composer && \
You can’t perform that action at this time.
0 commit comments