{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/5228","labels_url":"https://api.github.com/repos/elastic/kibana/issues/5228/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/5228/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/5228/events","html_url":"https://github.com/elastic/kibana/issues/5228","id":114060720,"number":5228,"title":"kibana not works if elasticsearch is proxied under a directory","user":{"login":"tolispy","id":13434405,"avatar_url":"https://avatars.githubusercontent.com/u/13434405?v=3","gravatar_id":"","url":"https://api.github.com/users/tolispy","html_url":"https://github.com/tolispy","followers_url":"https://api.github.com/users/tolispy/followers","following_url":"https://api.github.com/users/tolispy/following{/other_user}","gists_url":"https://api.github.com/users/tolispy/gists{/gist_id}","starred_url":"https://api.github.com/users/tolispy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolispy/subscriptions","organizations_url":"https://api.github.com/users/tolispy/orgs","repos_url":"https://api.github.com/users/tolispy/repos","events_url":"https://api.github.com/users/tolispy/events{/privacy}","received_events_url":"https://api.github.com/users/tolispy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T14:24:38Z","updated_at":"2015-10-29T14:42:32Z","closed_at":null,"body":"On shared hosting (site:example.com), create dir /httpdocs/es with 2 files inside, .htaccess and .htpasswd\r\n\r\n.htaccess\r\n------------\r\n#uncoment LoadModule proxy_http_module modules/mod_proxy_http.so at httpd.conf\r\nAuthType Basic\r\nAuthName \"Elasticsearch\"\r\nAuthUserFile \"/var/www/vhosts/example.com/httpdocs/es/.htpasswd\"\r\nRequire valid-user\r\nDirectoryIndex\r\nRewriteEngine On\r\nRewriteRule ^(.*)$ http://127.0.0.1:9200/$1 [L,P]\r\n\r\n.htpasswd\r\n------------\r\nadmin:$apr1$CppsBnSo$tUjQHRlXlHr0Jh7e0yQLK.\r\n\r\nNow, visit http://example.com/es/\r\nEnter:\r\nusername: admin\r\npassword: admin\r\n\r\nElasticsearch answers!\r\n\r\nNow, visit kibana http://example.com/es/_plugin/marvel/kibana/index.html#/dashboard\r\nWebUI loads, but no answer from elasticsearch.\r\nUsing Fiddler, reveals the problem\r\n\r\n#\tResult\tProtocol\tHost\tURL\tBody\tCaching\tContent-Type\tProcess\tComments\tCustom\t\r\n1\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/index.html\t2.065\t\ttext/html\tadmunch:4084\t\t\t\r\n2\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/app/components/require.config.js\t2.645\t\ttext/javascript\tadmunch:4084\t\t\t\r\n3\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/bootstrap.light.min.css\t120.584\t\ttext/css\tadmunch:4084\t\t\t\r\n4\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/vendor/require/require.js\t16.687\t\ttext/javascript\tadmunch:4084\t\t\t\r\n5\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/normalize.min.css\t2.376\t\ttext/css\tadmunch:4084\t\t\t\r\n6\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/timepicker.css\t11.636\t\ttext/css\tadmunch:4084\t\t\t\r\n7\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/animate.min.css\t48.174\t\ttext/css\tadmunch:4084\t\t\t\r\n8\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/bootstrap-responsive.min.css\t16.451\t\ttext/css\tadmunch:4084\t\t\t\r\n9\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/font-awesome.min.css\t21.141\t\ttext/css\tadmunch:4084\t\t\t\r\n10\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/img/small.png\t480\t\timage/png\tadmunch:4084\t\t\t\r\n11\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/app/app.js\t657.679\t\ttext/javascript\tadmunch:4084\t\t\t\r\n12\t200\tHTTP\texample.com\t/favicon.ico\t34.494\t\timage/vnd.microsoft.icon\tadmunch:4084\t\t\t\r\n13\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/config.js\t2.531\t\ttext/javascript\tadmunch:4084\t\t\t\r\n14\t404\tHTTP\texample.com\t/_nodes\t963\t\ttext/html\tadmunch:4084\t\t\t\r\n15\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/css/bootstrap.dark.min.css\t121.000\t\ttext/css\tadmunch:4084\t\t\t\r\n16\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/app/partials/dashLoader.html\t4.908\t\ttext/html\tadmunch:4084\t\t\t\r\n17\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/app/partials/dashboard.html\t4.109\t\ttext/html\tadmunch:4084\t\t\t\r\n18\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/app/partials/dashLoaderShare.html\t567\t\ttext/html\tadmunch:4084\t\t\t\r\n19\t404\tHTTP\texample.com\t/_nodes\t963\t\ttext/html\tadmunch:4084\t\t\t\r\n20\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/font/fontawesome-webfont.woff?v=3.2.1\t43.572\t\t\tadmunch:4084\t\t\t\r\n21\t200\tHTTP\texample.com\t/es/_plugin/marvel/kibana/app/panels/timepicker/module.html\t1.758\t\ttext/html\tadmunch:4084\t\t\t\r\n22\t404\tHTTP\texample.com\t/_nodes\t963\t\ttext/html\tadmunch:4084\t\t\t\r\n23\t404\tHTTP\texample.com\t/_nodes\t963\t\ttext/html\tadmunch:4084\t\t\t\r\n24\t404\tHTTP\texample.com\t/_nodes\t963\t\ttext/html\tadmunch:4084\t\r\n\r\n\r\n**kibana queries http://example.com/_nodes instead of http://example.com/es/_nodes**\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/152201289","html_url":"https://github.com/elastic/kibana/issues/5228#issuecomment-152201289","issue_url":"https://api.github.com/repos/elastic/kibana/issues/5228","id":152201289,"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},"created_at":"2015-10-29T14:42:32Z","updated_at":"2015-10-29T14:42:32Z","body":"Which version is that? We have a different problem with kibana 4.2 proxied under a directory - assets like /bundles/commons.style.css are referenced absolute and hence do not resolve any more.\r\n\r\nTrying to figure out if that should be a different issue..."}}