diff --git a/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2 b/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2
index ebd19b6e..86fb399f 100644
--- a/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2
+++ b/smartgears/sharelatex_connector/templates/sharelatex-web.xml.j2
@@ -5,7 +5,7 @@
hostName
- {{ sharelatex.d4science.org }}
+ {{ sharelatex_hostname }}
mongoHost