0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-21 03:06:08 +02:00

added ServerName in apache conf to remove AH00558 warning in logs

This commit is contained in:
leolivier 2022-11-05 13:29:44 +01:00
parent 625445fbe9
commit 9165f3c53f
2 changed files with 6 additions and 2 deletions

View file

@ -96,7 +96,9 @@ RUN { \
\
mkdir /var/www/data; \
chown -R www-data:root /var/www; \
chmod -R g=u /var/www
chmod -R g=u /var/www; \
# added ServerName in apache conf to remove AH00558 warning in logs
echo 'ServerName 127.0.0.1' >> /etc/apache2/apache2.conf
VOLUME /var/www/html
%%VARIANT_EXTRAS%%

View file

@ -142,7 +142,9 @@ RUN set -ex; \
chmod +x /usr/src/nextcloud/occ; \
\
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*; \
# added ServerName in apache conf to remove AH00558 warning in logs
echo 'ServerName 127.0.0.1' >> /etc/apache2/apache2.conf
COPY *.sh upgrade.exclude /
COPY config/* /usr/src/nextcloud/config/