diff --git a/Dockerfile b/Dockerfile
index 305c7290bbbdf210cff9a615346a36468335effe..c2680435947927bd6c4beeb7c5885bd4684f7e4d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,4 +15,5 @@ VOLUME /var/log/apache2
 VOLUME /var/lib/php/sessions
 VOLUME /var/run
 
-RUN rm -Rf setup 
+RUN rm -Rf setup && a2enmod rewrite
+ 
diff --git a/docker/000-default.conf b/docker/000-default.conf
index 51f034c00a437d4192e3707c911282257e44f5e2..64782ea9df8866d88182e88d7809e76a0b9e7667 100644
--- a/docker/000-default.conf
+++ b/docker/000-default.conf
@@ -28,6 +28,11 @@
 	# following line enables the CGI configuration for this host only
 	# after it has been globally disabled with "a2disconf".
 	#Include conf-available/serve-cgi-bin.conf
+	<Directory /var/www/>
+		AllowOverride All
+	</Directory>
+
+
 </VirtualHost>
 
 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet