Update Apache configuration to change DocumentRoot to /var/www/html

This commit is contained in:
Lukian 2025-01-21 09:28:19 +01:00
parent e130e468b3
commit e135b634ff
3 changed files with 3 additions and 4 deletions

View file

@ -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.

View file

@ -2,7 +2,7 @@
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /app
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.

View file

@ -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"]