{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/1170","labels_url":"https://api.github.com/repos/aspnet/Home/issues/1170/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/1170/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/1170/events","html_url":"https://github.com/aspnet/Home/issues/1170","id":121630636,"number":1170,"title":"nginx and kestrel setup docs for linux?","user":{"login":"mw007","id":243049,"avatar_url":"https://avatars.githubusercontent.com/u/243049?v=3","gravatar_id":"","url":"https://api.github.com/users/mw007","html_url":"https://github.com/mw007","followers_url":"https://api.github.com/users/mw007/followers","following_url":"https://api.github.com/users/mw007/following{/other_user}","gists_url":"https://api.github.com/users/mw007/gists{/gist_id}","starred_url":"https://api.github.com/users/mw007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mw007/subscriptions","organizations_url":"https://api.github.com/users/mw007/orgs","repos_url":"https://api.github.com/users/mw007/repos","events_url":"https://api.github.com/users/mw007/events{/privacy}","received_events_url":"https://api.github.com/users/mw007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-11T03:40:19Z","updated_at":"2015-12-12T19:59:06Z","closed_at":null,"body":"I'm trying to setup nginx + kestrel in order to serve an ASP.NET 5 app from Linux Mint. Is there any guidance on this? I've read [docs.asp.net/installing-on-linux](https://docs.asp.net/en/latest/getting-started/installing-on-linux.html), as well as, a two-part blog post written back in June [here](http://druss.co/2015/06/asp-net-5-kestrel-nginx-web-server-on-linux) and [here](http://druss.co/2015/06/run-kestrel-in-the-background).\r\n\r\nRight now, I have nginx setup to forward requests to kestrel on port 5000. Things seem to work (i.e. I can see kestrel working without error in a terminal), but the browser just spins. If I Ctrl+C to quit kestrel, the page is then sent to the browser and rendered. I've verified that this is indeed what's happening with Fiddler.\r\n\r\nMy goal is to have nginx and kestrel run in daemon mode, and automatically start at boot. Is this currently possible?"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/164185612","html_url":"https://github.com/aspnet/Home/issues/1170#issuecomment-164185612","issue_url":"https://api.github.com/repos/aspnet/Home/issues/1170","id":164185612,"user":{"login":"marce155","id":1212708,"avatar_url":"https://avatars.githubusercontent.com/u/1212708?v=3","gravatar_id":"","url":"https://api.github.com/users/marce155","html_url":"https://github.com/marce155","followers_url":"https://api.github.com/users/marce155/followers","following_url":"https://api.github.com/users/marce155/following{/other_user}","gists_url":"https://api.github.com/users/marce155/gists{/gist_id}","starred_url":"https://api.github.com/users/marce155/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marce155/subscriptions","organizations_url":"https://api.github.com/users/marce155/orgs","repos_url":"https://api.github.com/users/marce155/repos","events_url":"https://api.github.com/users/marce155/events{/privacy}","received_events_url":"https://api.github.com/users/marce155/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T19:59:05Z","updated_at":"2015-12-12T19:59:05Z","body":"@mw007 your config looks fine actually...\r\n[Mine is quite similar](https://gist.github.com/marce155/b57b6be2edf4b642c728), just using $http_host for the Host header ([which shouldn't be the cause of your problem](http://stackoverflow.com/questions/15414810/whats-the-difference-of-host-and-http-host-in-nginx)) and my public domain instead of localhost as server_name (while unsurprisingly localhost works locally as well for me).\r\nWhen I started I made a mistake in the config leading to a redirect loop with similar issues you described, so I thought maybe you did something similar, but that's not the case. Sorry, can't help you here...\r\n\r\nWith this configuration it's running perfectly fine for me, as long as I start kestrel as my user and not daemonized as root ([see also this issue](https://github.com/aspnet/Home/issues/1007))."}}