Generating redirects to internal named locations

Alexandr Gomoliako zzz at zzz.org.ua
Sun Aug 7 22:07:45 UTC 2011


On 8/8/11, Dave Hayes <dave at jetcafe.org> wrote:
> Greetings nginx gurus. :) Is there a better way to generate a redirect
> to a named location than this?

>   location ~ \.pl$ {
>       try_files /this_should_never_exist @perl;
>   }

Another way is to use error_page in conjunction with return.
But in this case you should just replace try_files with your named
location's config.



More information about the nginx mailing list