Disable file browsing (#5922)

* Added cron to list of packages

* Disable file browsing from the public directory
This commit is contained in:
Earl Ramirez 2018-07-24 11:40:04 +08:00 committed by snipe
parent 66c3f5432d
commit ef1e8df001
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ vim \
git \ git \
cron \ cron \
mysql-client \ mysql-client \
cron \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

View file

@ -134,7 +134,7 @@ create_virtualhost () {
echo " <Directory $APP_PATH/public>" echo " <Directory $APP_PATH/public>"
echo " Allow From All" echo " Allow From All"
echo " AllowOverride All" echo " AllowOverride All"
echo " Options +Indexes" echo " Options -Indexes"
echo " </Directory>" echo " </Directory>"
echo "" echo ""
echo " DocumentRoot $APP_PATH/public" echo " DocumentRoot $APP_PATH/public"