Simplify hosts configuration
Add an environment variable for development purposes
Add a fix for correctly setting the document root
Add a host configuration for handling subdomains separately