{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/5230","labels_url":"https://api.github.com/repos/elastic/kibana/issues/5230/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/5230/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/5230/events","html_url":"https://github.com/elastic/kibana/issues/5230","id":114072054,"number":5230,"title":"Kibana 4.2.0 cannot be proxied under a directory any more","user":{"login":"BernhardBln","id":4759839,"avatar_url":"https://avatars.githubusercontent.com/u/4759839?v=3","gravatar_id":"","url":"https://api.github.com/users/BernhardBln","html_url":"https://github.com/BernhardBln","followers_url":"https://api.github.com/users/BernhardBln/followers","following_url":"https://api.github.com/users/BernhardBln/following{/other_user}","gists_url":"https://api.github.com/users/BernhardBln/gists{/gist_id}","starred_url":"https://api.github.com/users/BernhardBln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernhardBln/subscriptions","organizations_url":"https://api.github.com/users/BernhardBln/orgs","repos_url":"https://api.github.com/users/BernhardBln/repos","events_url":"https://api.github.com/users/BernhardBln/events{/privacy}","received_events_url":"https://api.github.com/users/BernhardBln/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/bug","name":"bug","color":"ff0000"},{"url":"https://api.github.com/repos/elastic/kibana/labels/PR%20pending","name":"PR pending","color":"EB9D20"},{"url":"https://api.github.com/repos/elastic/kibana/labels/v4.2.2","name":"v4.2.2","color":"dddddd"},{"url":"https://api.github.com/repos/elastic/kibana/labels/v4.3.0","name":"v4.3.0","color":"dddddd"}],"state":"closed","locked":false,"assignee":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/received_events","type":"User","site_admin":false},"milestone":null,"comments":38,"created_at":"2015-10-29T15:16:24Z","updated_at":"2016-02-01T19:01:39Z","closed_at":"2015-11-17T18:23:15Z","body":"We were playing around with Kibana 4.1 which we proxied under /kibana/* - that worked quite well.\r\n\r\nNow, the Kibana app is under /app/kibana and tries to load resources via their absolute url, e.g. `/bundles/kibana.bundle.js`.\r\n\r\nCould that be referenced relatively? Then proxying would still work..."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/178130654","html_url":"https://github.com/elastic/kibana/issues/5230#issuecomment-178130654","issue_url":"https://api.github.com/repos/elastic/kibana/issues/5230","id":178130654,"user":{"login":"ksou1","id":16965871,"avatar_url":"https://avatars.githubusercontent.com/u/16965871?v=3","gravatar_id":"","url":"https://api.github.com/users/ksou1","html_url":"https://github.com/ksou1","followers_url":"https://api.github.com/users/ksou1/followers","following_url":"https://api.github.com/users/ksou1/following{/other_user}","gists_url":"https://api.github.com/users/ksou1/gists{/gist_id}","starred_url":"https://api.github.com/users/ksou1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksou1/subscriptions","organizations_url":"https://api.github.com/users/ksou1/orgs","repos_url":"https://api.github.com/users/ksou1/repos","events_url":"https://api.github.com/users/ksou1/events{/privacy}","received_events_url":"https://api.github.com/users/ksou1/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T19:01:39Z","updated_at":"2016-02-01T19:01:39Z","body":"I was able to get both kibana 4.3.1 and ES plugins working through Nginx, using the detail @damm posted on 10/30/2015, and a separate location directive to handle the plugins. I had to add \"elasticsearch\" as a path in the location directive for Kibana, as my logs revealed requests directed to that path, and without it i would not get any information in my Kibana screens). The second directive handles the ES plugins i use (particularly \"hq\"). The \"kopf\" plugin doesnt connect unless I have the \"/\" path in the directive. Here's nginx location directives:\r\n\r\nlocation ~ (/app/kibana|/bundles/|/kibana4|/status|/plugins|/elasticsearch) {\r\n    proxy_pass http://localhost:5601;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection \"upgrade\";\r\n    proxy_set_header Host $host;\r\n    rewrite /kibana4/(.*)$ /$1 break;\r\n    access_log      /opt/nginx-1.8.0/logs/kibana-access.log;\r\n    error_log       /opt/nginx-1.8.0/logs/kibana-error.log;\r\n}\r\n\r\nlocation ~ (/|/_plugin) {\r\n    proxy_pass http://localhost:9217;\r\n    access_log      /opt/nginx-1.8.0/logs/esplugin-access.log;\r\n    error_log       /opt/nginx-1.8.0/logs/esplugin-error.log;\r\n}\r\n\r\nI listen on port 443 and access Kibana and ES plugins as:\r\nKibana:  https://<hostwherenginxis>.<domain>/app/kibana\r\nES Plugins:  https://<hostwherenginxis>.<domain>/_plugin/<plugin name>\r\n\r\nHope this helps somebody, cuz its a bear trying to get all this stuff working again every time Elastic decides to change direction."}}