Welcome! Log In Create A New Profile

Advanced

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Igal @ Lucee.org
June 09, 2017 12:48PM
Hi,

On 6/9/2017 12:11 AM, Francis Daly wrote:
> On Thu, Jun 08, 2017 at 03:59:19AM -0400, iivan wrote:
>
>> Here's the full configuration file:
>> https://gist.github.com/ivanionut/946468ce86086a55937e92c7249e3ed7
> That shows that the "if/rewrite" that you showed previously is within
> "location / {}", and it rewrites to /index.cfm.
>
> What part of your config shows how nginx should handle a request for
> /index.cfm?

I think that that's the issue. You need to add something like

## this will not check for regular expression locations for uris that
start with "/index.cfm"
location ^~ /index.cfm {
## proxy request to Lucee here
}

Without this, requests to "anything" redirect to /index.cfm, but then
the redirect to /index.cfm again matches "anything", so it redirects
again to /index.cfm in an infinite loop which will show on the browser
ERR_TOO_MANY_REDIRECTS.


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

Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan May 31, 2017 05:58AM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan June 07, 2017 05:00PM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Igal @ Lucee.org June 07, 2017 06:26PM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan June 08, 2017 03:59AM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Francis Daly June 09, 2017 03:12AM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan June 09, 2017 04:14AM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Igal @ Lucee.org June 09, 2017 12:48PM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan June 09, 2017 03:06PM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Igal @ Lucee.org June 09, 2017 05:32PM

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Francis Daly June 10, 2017 02:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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