title: Nginx error rewrite or internal redirection cycle while internally redirecting - what's wrong?
body: <p>I'm getting this:</p>
  
  <p>2020/06/12 20:43:58 [error] 3266#3266: *39 rewrite or internal redirection cycle while internally redirecting to "/home/panel/front/qcnet24-front/index.html", client: 195.x.x.136, server: my-app, request: "GET /register HTTP/1.1", host: "vps-866691.vps.ovh.net"</p>
  
  <p>My configuration of nginx.conf is:</p>
  
  <pre><code>server{
                  listen 0.0.0.0:80;
                  server_name my-app;
                  root /home/panel/front/qcnet24-front;
                  #error_page 404 /home/panel/front/qcnet24-front/index.html;
  
                  location / {
                          index index.html;
                          try_files $uri $uri/ /home/panel/front/qcnet24-front/index.html;
                  }
  
                  location /images {
                          alias /home/panel/Pictures;
                  }
  
                  location /api {
                          proxy_pass http://127.0.0.1:8080/api;
                  }
  
                  location /login {
                          proxy_pass http://127.0.0.1:8080/login;
                  }
      }
  </code></pre>
  
  <p>}</p>