Sto provando a eseguire il plugin elastico-testa di ricerca sul mio server, ma posso semplicemente accedervi tramite il terminale del server. Se provo ad accedervi tramite un browser, tenta di connettersi finché non viene visualizzato il messaggio del browser "Questa pagina non è disponibile".Il plug-in ES-head non funziona tramite il browser
Se scriv "curl -v http://localhost:9200/_plugin/head/"
nel terminale, ottengo
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9200 (#0)
> GET /_plugin/head/ HTTP/1.1
> User-Agent: curl/7.36.0
> Host: localhost:9200
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html
< Content-Length: 1077
<
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>elasticsearch-head</title>
<link rel="stylesheet" href="dist/base/reset.css">
<link rel="stylesheet" href="dist/vendor.css">
<link rel="stylesheet" href="dist/app.css">
<script src="dist/i18n.js" data-baseDir="dist/lang" data-langs="en,fr,pt"></script>
<script src="dist/vendor.js"></script>
<script src="dist/app.js"></script>
<script>
window.onload = function() {
if(location.href.contains("/_plugin/")) {
var base_uri = location.href.replace(/_plugin\/.*/, '');
}
var args = location.search.substring(1).split("&").reduce(function(r, p) {
r[decodeURIComponent(p.split("=")[0])] = decodeURIComponent(p.split("=")[1]); return r;
}, {});
new app.App("body", {
id: "es",
base_uri: args["base_uri"] || base_uri,
auth_user : args["auth_user"] || "",
auth_password : args["auth_password"],
dashboard: args["dashboard"]
});
};
</script>
<link rel="icon" href="dist/base/favicon.png" type="image/png">
</head>
<body></body>
</html>
* Connection #0 to host localhost left intact
ma se vado a un browser e scriv: x.x.x.x: 9200/_plugin/testa/è appena non mostrare nulla.
Cosa mi manca qui? Qualche supposizione?
Grazie in anticipo.
Grazie per la risposta! Ho provato ma ottengo lo stesso risultato. Il browser attende e aspetta finché non ottengo il messaggio "Questo web non è disponibile" :( –