Francis Daly
June 10, 2017 02:40AM
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 difficult
to learn how things were.

Does everything work as you want if you revert to your previous version
of nginx?

> For example:
>
>
> set $sub_domain '';
>
> if ($host ~* ^(.*)\.salva\.link$) {
> set $sub_domain $1;
> }
>
>
> $sub_domain is always '0'. Can you confirm me?

For me, if I use that config fragment in some supporting config, and
make some suitable http requests, the only way $sub_domain is 0 is if
I set Host to 0.salva.link.

If you can include a complete but small config with clear instructions
on how to generate the unexpected output that you see, there is a much
better chance that someone else will be able to reproduce it.


Back to your original problem report:

nginx -T | grep 'location\|server'

might show enough of your actual running config to see where a request
for /index.cfm is handled. Limit the output to just the server{} block
that handles the request, if you have multiple unrelated server{}s in
the config.

f
--
Francis Daly francis@daoine.org
_______________________________________________
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: 289
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