Alexandr Gomoliako
August 07, 2011 06:08PM
On 8/8/11, Dave Hayes <dave@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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Generating redirects to internal named locations

Dave Hayes August 07, 2011 05:20PM

Re: Generating redirects to internal named locations

Alexandr Gomoliako August 07, 2011 06:08PM

Re: Generating redirects to internal named locations

Dave Hayes August 07, 2011 11:58PM

Re: Generating redirects to internal named locations

Alexandr Gomoliako August 08, 2011 12:36PM

Re: Generating redirects to internal named locations

Dave Hayes August 10, 2011 02:30AM

Re: Generating redirects to internal named locations

Paul Findlay August 10, 2011 07:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready