Welcome! Log In Create A New Profile

Advanced

Re: Minimal configuration

Francis Daly
February 16, 2014 04:40PM
On Sun, Feb 16, 2014 at 08:43:45PM +0100, B.R. wrote:

Hi there,

> try_files $uri $uri/;

The final argument to "try_files" is special.

> Requesting b.cd in the browser ends up wth a HTTP 500 error:
> '[error] 12345#0: *42 rewrite or internal redirection cycle while
> internally redirecting to "/", client: 12.34.56.78, server: b.cd, request:
> "GET / HTTP/1.1", host: "b.cd"'

Yes.

The debug log may show you why.

> Adding / at the end of try_files so it reads:
> try_files $uri $uri/ /;
> solves the problem...

Adding pretty much anything else at the end of try_files should also work,
for this request.

> Really, I don't get it.
> Any insight on what is going on?

The final argument to "try_files" is a uri for an internal redirect,
not a file to be served.

http://nginx.org/r/try_files

f
--
Francis Daly francis@daoine.org

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

Minimal configuration

B.R. February 15, 2014 06:32AM

Re: Minimal configuration

Francis Daly February 15, 2014 04:56PM

Re: Minimal configuration

B.R. February 16, 2014 02:46PM

Re: Minimal configuration

Francis Daly February 16, 2014 04:40PM

Re: Minimal configuration

B.R. February 16, 2014 05:02PM

Re: Minimal configuration

Francis Daly February 16, 2014 05:26PM

Re: Minimal configuration

B.R. February 16, 2014 06:44PM

Re: Minimal configuration

Francis Daly February 17, 2014 03:44AM

Re: Minimal configuration

B.R. February 17, 2014 08:16AM

Re: Minimal configuration

Francis Daly February 17, 2014 03:38PM

Re: Minimal configuration

B.R. February 17, 2014 05:18PM

Re: Minimal configuration

Francis Daly February 20, 2014 04:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
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