Container: Enable apache rewrites

This commit is contained in:
networkException 2022-04-14 17:19:54 +02:00
parent 6ea1646f9b
commit 3e37c05f6e
Signed by: networkException
GPG key ID: E3877443AE684391

View file

@ -19,4 +19,8 @@ FROM httpd:alpine
# No access logs
RUN sed -i 's/LoadModule log_config_module modules\/mod_log_config.so//g' /usr/local/apache2/conf/httpd.conf
# Enable rewrite
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf
RUN sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf
COPY --from=build /usr/src/app/public/ /usr/local/apache2/htdocs/