Implemented support for Host aliases and replacing hostname in nginx with http_host