Nginx – What does the at-sign “@” mean in nginx location blocks

nginx

I've encountered a few questions and answers on here that use this syntax:

location @default {
  # ...
}

location /somewhere {
    try_files $uri @default;
}

I've searched high and low on the Googles and I can't seem to find any documentation of it. What does it mean and what are some of it's practical uses? Is it some sort of variable declaration and assignment? Sorry for the newbie question.

Best Answer

The answer is in official documentation.

The “@” prefix defines a named location. Such a location is not used for a regular request processing, but instead used for request redirection. They cannot be nested, and cannot contain nested locations.