Skip to content

Commit 07a9777

Browse files
committed
Correct server name replacement command
Should no longer give server warning about being unable to determine ServerName.
1 parent 71d6810 commit 07a9777

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/Dockerfile_wp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ COPY docker/wait-for-it.sh /usr/local/bin
4040
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
4141
&& chmod +x wp-cli.phar \
4242
&& mv wp-cli.phar /usr/local/bin/wp
43-
RUN sed -i 's|#ServerName www.example.com|ServerName ${WP_DOMAIN}|' /etc/apache2/sites-available/*.conf
43+
RUN sed -i "s|#ServerName www.example.com|ServerName ${WP_DOMAIN}|" /etc/apache2/sites-available/*.conf
44+
RUN sed -i "s|#ServerName www.example.com|ServerName ${WP_DOMAIN}|" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
4445

4546
WORKDIR ${DOCROOT_PATH}
4647
COPY --from=vendor-dev ${BUILD_ROOT_PATH} ${PROJECT_MOUNT_PATH}

0 commit comments

Comments
 (0)