From e135b634ff9a2cbcb5b4e9f5cd731248963aeb29 Mon Sep 17 00:00:00 2001 From: Lukian Date: Tue, 21 Jan 2025 09:28:19 +0100 Subject: [PATCH] Update Apache configuration to change DocumentRoot to /var/www/html --- docker/apache2/000-default.conf | 2 +- docker/apache2/default-ssl.conf | 2 +- docker/apache2/dockerfile | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/apache2/000-default.conf b/docker/apache2/000-default.conf index 85e1582..6f1d8c7 100644 --- a/docker/apache2/000-default.conf +++ b/docker/apache2/000-default.conf @@ -9,7 +9,7 @@ #ServerName www.example.com ServerAdmin webmaster@localhost - DocumentRoot /app + DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. diff --git a/docker/apache2/default-ssl.conf b/docker/apache2/default-ssl.conf index 14c1b3b..4b9d7f9 100644 --- a/docker/apache2/default-ssl.conf +++ b/docker/apache2/default-ssl.conf @@ -2,7 +2,7 @@ ServerAdmin webmaster@localhost - DocumentRoot /app + DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. diff --git a/docker/apache2/dockerfile b/docker/apache2/dockerfile index 4ca21c2..a7f95e9 100644 --- a/docker/apache2/dockerfile +++ b/docker/apache2/dockerfile @@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y apache2 openssl ca-certificates \ && a2enmod ssl && a2ensite default-ssl COPY 000-default.conf /etc/apache2/sites-available/000-default.conf COPY default-ssl.conf /etc/apache2/sites-available/default-ssl.conf -WORKDIR /app -COPY --from=build /app/dist . +COPY --from=build /app/dist /var/www/html CMD ["apache2ctl", "-D", "FOREGROUND"] \ No newline at end of file