Remove 'HttpProtocolOptions Unsafe' apache.conf insertion from Dockerfile

* Also remove mention of 'HttpProtocolOptions Unsafe' from README
This commit is contained in:
Franciszek Stachura 2024-08-05 14:57:18 +02:00 committed by Théo Lebrun
parent d6df6deeaa
commit 3714430aef
2 changed files with 2 additions and 5 deletions

View file

@ -198,7 +198,6 @@ Note: If using apache2 (Ubuntu/Debian) instead of httpd (RedHat/Centos),
the default config file to edit is: `/etc/apache2/sites-enabled/000-default.conf`
----
HttpProtocolOptions Unsafe
# Required for HTTP
<Directory /usr/local/elixir/http/>
Options +ExecCGI

View file

@ -32,9 +32,7 @@ RUN mkdir -p /srv/elixir-data/
# make apache less stricter about cgitb spam headers
COPY ./docker/000-default.conf /etc/apache2/sites-available/000-default.conf
RUN \
echo -e "\nHttpProtocolOptions Unsafe" >> /etc/apache2/apache.conf && \
a2enmod cgi rewrite
RUN a2enmod cgi rewrite
EXPOSE 80