diff --git a/Dockerfile b/Dockerfile
index 5729f080bed084ff34ffa9b6e6cffe1185a07929..cbf266c8d82d48967d16fded3021fe685dd13b6a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,6 +12,7 @@ RUN a2enmod ssl
 RUN a2enmod proxy
 RUN a2enmod proxy_http
 RUN a2enmod headers
+RUN a2enmod rewrite
 
 #TODO Links to be compliance with old env. We should remove this in the future.
 RUN ln -s -T /var/www/html/ /smartdata && chmod 777 /smartdata