feat(samples/httpasteit): add security to httpd
- configure mod_security - configure mode_evasive
This commit is contained in:
parent
b081f4a5b6
commit
e79714e1f6
2 changed files with 30 additions and 1 deletions
|
|
@ -1,3 +1,14 @@
|
|||
FROM httpd:2.4
|
||||
|
||||
RUN apt-get update -y && apt-get install -y libapache2-mod-proxy-uwsgi
|
||||
RUN apt-get update -y && apt-get install -y \
|
||||
libapache2-mod-proxy-uwsgi \
|
||||
libapache2-mod-evasive \
|
||||
libapache2-mod-security2
|
||||
|
||||
RUN mkdir -p /usr/local/apache2/crs-tecmint
|
||||
|
||||
ADD https://github.com/SpiderLabs/owasp-modsecurity-crs/archive/refs/tags/v3.2.0.tar.gz /usr/local/apache2/crs/master
|
||||
|
||||
RUN cd /usr/local/apache2/crs && \
|
||||
tar -xzf master && \
|
||||
cp owasp-modsecurity-crs-3.2.0/crs-setup.conf.example owasp-modsecurity-crs-3.2.0/crs-setup.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue