Added a {hostname} template replacement for the app