mardi 6 septembre 2016

Cannot GET / error

I am serving my application using nginx and the application is written in EmberJS.

Here is the application html,

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Apollo</title>
  <!-- not part of lib, since there is some changes-->
  <link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
  <link rel="stylesheet" type="text/css" href="/css/jquery-ui-1.8.16.css" />
  <link rel="stylesheet" type="text/css" href="/css/apollo.css" />
  <link rel="stylesheet" type="text/css" href="/css/slick.grid.css" />
  <link rel="stylesheet" type="text/css" href="/css/slick.pager.css" />
  <link rel="stylesheet" type="text/css" href="/css/lib/bootstrap-datetimepicker.css" />
  <link rel="stylesheet" type="text/css" href="/css/bootstrap-multiselect.css" />


  <script>
    window.require = { waitSeconds: 0 };
  </script>

  <script data-main="js/main.js" src="/js/lib/require.js" type="text/javascript" ></script>


</head>
<body>
  <div id="screen-overlay">
    <div id="loading-glyph-center">
      <span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> Loading...
    </div>
  </div>
</body>
</html>

I am getting cannot GET / error specifically when I open a page in new window, during which the application starts serving the pages freshly from first.

My nginx conf for / looks like this,

location / {
    root   /var/web/current/frontend/;
    index  index.html index.htm app.html;
    add_header Cache-Control no-cache;
}

I am not sure where to start debugging for this issue.

Any pointers appreciated. Thanks.




Aucun commentaire:

Enregistrer un commentaire