Added missing directory
Added email config, tweaked nginx host headr behaviour