Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-10 Thread Francis Daly
On Fri, Jun 09, 2017 at 04:14:35AM -0400, iivan wrote: Hi there, > to me there seems to be some bug... It's very weird that it worked first and > now it does not. Perhaps a bug was fixed, and it should never have worked? I think that without a specific complete problem report, it is going to be

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-09 Thread Igal @ Lucee.org
That wasn't the issue though. The issue is that you don't have a prefix location for /index.cfm as described in my previous post. Igal On 6/9/2017 12:06 PM, iivan wrote: Hi Igal, The lucee proxy is configured correctly: https://gist.github.com/ivanionut/c4339b4006fa1bf8e12c3ba7be9ee0bc I

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-09 Thread iivan
Hi Igal, The lucee proxy is configured correctly: https://gist.github.com/ivanionut/c4339b4006fa1bf8e12c3ba7be9ee0bc I omitted from the gist that I posted earlier to make it as easy configuration file. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274541,274798#msg-274798

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-09 Thread Igal @ Lucee.org
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 / {}",

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-09 Thread iivan
Hi Francis, to me there seems to be some bug... It's very weird that it worked first and now it does not. For example: set $sub_domain ''; if ($host ~* ^(.*)\.salva\.link$) { set $sub_domain $1;

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-09 Thread Francis Daly
On Thu, Jun 08, 2017 at 03:59:19AM -0400, iivan wrote: Hi there, > 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

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-08 Thread iivan
Hi Igal, Firstly, thank you for your answer. I also like to find you on this forum (I am a lucee user :) ), Can you give me a tip how to do it? Here's the full configuration file: https://gist.github.com/ivanionut/946468ce86086a55937e92c7249e3ed7 It was working correctly before the upgrade to

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-07 Thread Igal @ Lucee.org
On 5/31/2017 2:58 AM, iivan wrote: I updated nginx to version 1.13.0 This rule that was working correctly right now makes me mistake in the browser: ERR_TOO_MANY_REDIRECTS if ($host ~* ^(.*)\.website\.com$) { set $sub_domain $1; rewrite ^/(.*)?$

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-07 Thread iivan
Hi, do not you have any suggestions for me? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274541,274751#msg-274751 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-05-31 Thread iivan
I updated nginx to version 1.13.0 This rule that was working correctly right now makes me mistake in the browser: ERR_TOO_MANY_REDIRECTS if ($host ~* ^(.*)\.website\.com$) { set $sub_domain $1; rewrite ^/(.*)?$ /index.cfm?event=dashboard=$sub_domain=$1 last; } Thank you in