Migrate the location directives to generic block configuration like in config files