javascript - AngularJS Nginx Routing issue on Refresh -
i building angularjs app , have routing working first layer of routes: ie: /blah /blah2 /blah3 however, when more complex route such as: /blah/thing /blah2/things /blah3/things these not routing correctly when refreshing page. work fine when clicking link them spa. i running nginx following conf: server { listen 80; root /home/app/public; index index.html; server_name dev-app.com; location / { try_files $uri $uri/ $uri.html /index.html; } } and here example routes: .when('/instances/running', { templateurl : 'pages/instances-running.html', controller : 'instancescontroller', currentpage : 'running instances', }) .when('/instances/stopped', { templateurl : 'pages/instances-stopped.html', controller : 'instancescontroller', currentpage : 'stopped instances', }) .when('/tickets/open', { templateurl : 'pages/tickets-open.html',...