Merge pull request #558 from conradkleinespel/patch-1
Blocking access to /data with the docker image
This commit is contained in:
commit
5d1c5697ce
12
Dockerfile
12
Dockerfile
@ -2,8 +2,16 @@ FROM ubuntu:14.04
|
|||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y apache2 php5 php5-sqlite php5-curl && \
|
apt-get install -y apache2 php5 php5-sqlite php5-curl && \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
|
||||||
|
RUN echo \
|
||||||
|
"ServerName localhost\n" \
|
||||||
|
"<Directory /var/www/html/data/>\n" \
|
||||||
|
" Deny from all\n" \
|
||||||
|
"</Directory>\n" \
|
||||||
|
"<Directory /var/www/html/data/favicons/>\n" \
|
||||||
|
" Allow from all\n" \
|
||||||
|
"</Directory>\n" >> /etc/apache2/apache2.conf
|
||||||
|
|
||||||
COPY . /var/www/html
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user