update 7.3 prod

This commit is contained in:
Vincent BRIDIER 2023-08-21 17:36:56 +02:00
parent 55ff911900
commit 4f8a2597f0
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
3 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM php:7.3-apache
FROM php:7.3-apache-bullseye
RUN apt-get update -qq && \
apt-get install -qy \
@ -27,7 +27,9 @@ RUN apt-get update -qq && \
# ldap
ldap-utils libldap2-dev \
# locales
locales
locales \
# libcap
libcap2-bin
# LOCALES
ENV DEBIAN_FRONTEND noninteractive
@ -71,5 +73,11 @@ RUN a2enmod rewrite remoteip headers http2 && \
a2enconf z-app
RUN mkdir -p /app/tmp && chmod -R 770 /app/tmp && chown -R www-data:www-data /app
#Change access righs to conf, logs, bin from root to www-data
RUN chown -hR www-data:www-data /var/log/apache2
#setcap to bind to privileged ports as non-root
RUN setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2
USER www-data
WORKDIR /app/srcs

View file

@ -2,6 +2,6 @@
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 4433
Listen 443
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View file

@ -1,4 +1,4 @@
<VirtualHost *:4433>
<VirtualHost *:443>
Protocols h2 h2c http/1.1
ServerAdmin contact@ldc.fr
DocumentRoot /app/srcs/public