Re: fastcgi_cache_key

2017-06-09 Thread Francis Daly
On Fri, Jun 09, 2017 at 04:07:31PM +0300, ST wrote: Hi there, > I try to understand an example configuration and have difficulties with > following line: > > fastcgi_cache_key "$request_method|$http_if_modified_since| > $http_if_none_match|$host|$request_uri"; > > Could somebody, please, explai

Re: Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

2017-06-09 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 omi

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 / {}", an

Re: Same cached objects, but different body_bytes_sent

2017-06-09 Thread Maxim Dounin
Hello! On Thu, Jun 08, 2017 at 07:26:40PM -0300, Guilherme wrote: > Thanks for your response, Zhang. > > I included content-length in log_format to see: > > y.y.y.y - [08/Jun/2017:22:15:46 +] "GET /image.jpg HTTP/2.0" 200 466 > HIT "Mozilla/5.0 (Linux; Android 5.0.1; GT-I9515L Build/LRX22C)

fastcgi_cache_key

2017-06-09 Thread ST
Hello, I try to understand an example configuration and have difficulties with following line: fastcgi_cache_key "$request_method|$http_if_modified_since| $http_if_none_match|$host|$request_uri"; Could somebody, please, explain what does it mean? Thank you!

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