Skip to content

Commit

Permalink
Enable .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
ixkaito committed Jan 6, 2016
1 parent dff5b2d commit cb84ca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ RUN apt-get update \
# Apache Settings
#
RUN adduser --uid 1000 --gecos '' --disabled-password wocker \
&& sed -i -e '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf \
&& sed -i -e "s#DocumentRoot.*#DocumentRoot /var/www/wordpress#" /etc/apache2/sites-available/000-default.conf \
&& sed -i -e "s/export APACHE_RUN_USER=.*/export APACHE_RUN_USER=wocker/" /etc/apache2/envvars \
&& sed -i -e "s/export APACHE_RUN_GROUP=.*/export APACHE_RUN_GROUP=wocker/" /etc/apache2/envvars
&& sed -i -e "s/export APACHE_RUN_GROUP=.*/export APACHE_RUN_GROUP=wocker/" /etc/apache2/envvars \
&& a2enmod rewrite

#
# php.ini settings
Expand Down

0 comments on commit cb84ca3

Please sign in to comment.