title: yii2 advanced template: logging in causes inifinite redirect loop
body: <p>I've finished and uploaded my yii2 project (advanced template) to hosting (runs on nginx 1.4.4). Now when I want to log in to administrative backend and enter the login/password, it starts an infinite redirect loop. Which in my localserver it does not behave such that. </p>
  
  <p>I've surfed across the net but can't find any answer. Hope someone have faced such situation and were able to figure out, what is the problem. </p>
  
  <p>Some details: </p>
  
  <p>Server: nginx 1.4.4;
  X-Cacheable: YES
  Varnish is also enabled.</p>
  
  <p>I can give more information if necessary.</p>