Welcome! Log In Create A New Profile

Advanced

Guidance: statisc html to redirect to kibana

Posted by noobUser 
Guidance: statisc html to redirect to kibana
June 23, 2020 05:38AM
I've made a simple html file, so when you log into the web it has two buttons to redirect.

This is the code of this web.html file:
<!DOCTYPE html>
<html lang="es">
<head>
<title>Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<html>
<body>
<p></p>
<div class="header">
<a href="/kibana">
<h1>KIBANA</h1>
</a>
</div>
<p></p>
<div class="header">
<a href="/rshiny">
<h1>R</h1>
</a>
</div>
</body>
</html>

And now, the config file I use with nginx:
ssl_password_file /var/lib/nginx/ssl_passwords.txt;
server {
listen 80;
listen [::]:80;
server_name web.com;
return 301 https://web$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /.../cert.crt;
ssl_certificate_key /.../cert.key;
auth\_basic " Restricted access ";
auth\_basic\_user\_file /etc/nginx/.user;
root /var/www;
index web.html;
location /kibana {
proxy\_pass [http://127.0.0.1:X](http://127.0.0.1:5601)XXX;
proxy\_set\_header Host $http\_host;
proxy\_set\_header X-Real-IP $remote\_addr;
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
}
location /rshiny {
proxy\_pass [http://127.0.0.1:Y](http://127.0.0.1:5602)YYY;
proxy\_set\_header Host $http\_host;
proxy\_set\_header X-Real-IP $remote\_addr;
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
}
}

With this configuration, I can see the web.html but when I click in kibana, it directs to the web.com/kibana but with the error {"statusCode":404,"error":"Not Found","message":"Not Found"}. This doesn't happen when I clik in RShiny becuase it works perfectly

Any ideas why this doesn't work? What I am doing wrong? I can give more detail if you need it
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready