Move upstream to http context, where it's allowed