nginx usptream 302 redirect

Maxim Dounin mdounin at
Fri Oct 4 14:11:23 UTC 2013


On Fri, Oct 04, 2013 at 04:20:04PM +0300, Anatoli Marinov wrote:

> Where I can ask for a help with this configuration?
> I cannot manage to configure it.

The nginx@ list is intended for user questions, see


> But I receive 500 internal server error and in the logs I have:
> invalid URL prefix in ""
> I think the variable $upstream_http_location is empty. Should I use
> different variable?

You should save a value of the $upstream_http_location variable 
before upstream data will be reinitialized, e.g. via "set $foo 

Maxim Dounin

More information about the nginx-devel mailing list