{"action":"created","issue":{"url":"https://api.github.com/repos/progrium/dokku/issues/1184","labels_url":"https://api.github.com/repos/progrium/dokku/issues/1184/labels{/name}","comments_url":"https://api.github.com/repos/progrium/dokku/issues/1184/comments","events_url":"https://api.github.com/repos/progrium/dokku/issues/1184/events","html_url":"https://github.com/progrium/dokku/issues/1184","id":75714385,"number":1184,"title":"Redirecting to port 5000","user":{"login":"alexbeletsky","id":304929,"avatar_url":"https://avatars.githubusercontent.com/u/304929?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeletsky","html_url":"https://github.com/alexbeletsky","followers_url":"https://api.github.com/users/alexbeletsky/followers","following_url":"https://api.github.com/users/alexbeletsky/following{/other_user}","gists_url":"https://api.github.com/users/alexbeletsky/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeletsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeletsky/subscriptions","organizations_url":"https://api.github.com/users/alexbeletsky/orgs","repos_url":"https://api.github.com/users/alexbeletsky/repos","events_url":"https://api.github.com/users/alexbeletsky/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeletsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-12T19:42:02Z","updated_at":"2015-06-25T15:04:19Z","closed_at":"2015-06-25T15:04:19Z","body":"Running the static application based on [heroku-buildpack-nginx](https://github.com/alexbeletsky/heroku-buildpack-nginx), I've got a strange error.\r\n\r\nOnce I hit the URL, which doesn't exist, or one without trailing slash, I got redirect to port 5000.\r\n\r\nIt is very simple to reproduce [here](http://socialsearch.likeastore.com/), just open the link and then `/anything` and it will be redirected to `:5000/anything`. All is good then I have a trailing slash.\r\n\r\nWhere does this port `5000` comes from? Is this something `dokku` does or it's container's `ngingx.conf` issue? Any clues are really appreciated.\r\n\r\nDokku version `v0.3.7`."},"comment":{"url":"https://api.github.com/repos/progrium/dokku/issues/comments/115286248","html_url":"https://github.com/progrium/dokku/issues/1184#issuecomment-115286248","issue_url":"https://api.github.com/repos/progrium/dokku/issues/1184","id":115286248,"user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T15:04:19Z","updated_at":"2015-06-25T15:04:19Z","body":"I'd recommend using the php buildpack for static files, since its quite simple to setup and is an official buildpack. Should work just fine for this use case. I think the redirect issues are caused by your buildpack. Sorry I can't help anymore, hopefully you figured this out in the meantime."}}