[APACHE] forgot to enable rewrite module for .htaccess

This commit is contained in:
thopic 2021-07-20 16:55:09 +02:00
parent 679cf7f480
commit ac7dcd6c11
Signed by: thopic
GPG Key ID: 292DBBF0B54AD4C5

View File

@ -1,6 +1,6 @@
from php:7.4.21-apache from php:7.4.21-apache
RUN a2enmod remoteip RUN a2enmod remoteip rewrite
RUN echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf RUN echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf
RUN a2enconf remoteip RUN a2enconf remoteip
RUN sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf RUN sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf