I think I fixed the urls now. request.getServerName doesn't work, i get
wwwdev.ebi.ac.uk for dev.mousephenotype