Fixing a bug related to securing the default '/' location

If the location '/' is marked as 'secure: never' or 'secure: optional', AppController generates an invalid nginx configuration with 2 location elements for the '/' URL path. This fix captures this scenario and generates a valid nginx configuration.