Adding support for environments on nginx