Hello, I use Nginx as a web server / proxy. I created the following nginx *.conf file for Kibana.
root@dsme01:~# cat /etc/nginx/sites-available/kibana.conf
server {
# Update this line to be your domain
server_name kibana.intern.example.com;
# These shouldn't need to be changed
listen kibana.intern.example.com:80;
return 301 https://$host$request_uri;
}
server {
server_name kibana.intern.example.com;
listen kibana.intern.example.com:443 ssl;
ssl_certificate /etc/ssl/certs/kibana.intern.example.com.crt;
ssl_certificate_key /etc/ssl/private/kibana.intern.example.com.key;
ssl_dhparam /etc/ssl/certs/dhparams.pem;
location / {
proxy_read_timeout 300s;
proxy_connect_timeout 75s;
proxy_pass https://192.168.150.20:5601;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
}
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
}
When calling up the FQDN via the browser, I get the above error message and the following log entry
2022/12/19 13:19:02 [error] 2740#2740: *101 upstream sent too big header while reading response header from upstream, client: 192.168.30.62, server: kibana.intern.example.com, request: "GET /kibana/login?next=%2Fkibana%2Fkibana%2Flogin%3Fnext%3D%252Fkibana%252Fkibana%252Flogin%253Fnext%253D%25252Fkibana%25252Fkibana%25252Flogin%25253Fnext%25253D%2525252Fkibana%2525252Fkibana%2525252Flogin%2525253Fnext%2525253D%252525252Fkibana%252525252Fkibana%252525252Flogin%252525253Fnext%252525253D%25252525252Fkibana%25252525252Fkibana%25252525252Flogin%25252525253Fnext%25252525253D%2525252525252Fkibana%2525252525252Fkibana%2525252525252Flogin%2525252525253Fnext%2525252525253D%252525252525252Fkibana%252525252525252Fkibana%252525252525252Flogin%252525252525253Fnext%252525252525253D%25252525252525252Fkibana%25252525252525252Fkibana%25252525252525252Flogin%25252525252525253Fnext%25252525252525253D%2525252525252525252Fkibana%2525252525252525252Fkibana%2525252525252525252Flogin%2525252525252525253Fnext%2525252525252525253D%252525252525252525252Fkibana%252525252525252525252Fkibana%252525252525252525252Flogin%252525252525252525253Fnext%252525252525252525253D%25252525252525252525252Fkibana%25252525252525252525252Fkibana%25252525252525252525252Flogin%25252525252525252525253Fnext%25252525252525252525253D%2525252525252525252525252Fkibana%2525252525252525252525252Fkibana%2525252525252525252525252Flogin%2525252525252525252525253Fnext%2525252525252525252525253D%252525252525252525252525252Fkibana%252525252525252525252525252Fkibana%252525252525252525252525252Flogin%252525252525252525252525253Fnext%252525252525252525252525253D%25252525252525252525252525252Fkibana%25252525252525252525252525252Fkibana%25252525252525252525252525252Flogin%25252525252525252525252525253Fnext%25252525252525252525252525253D%2525252525252525252525252525252Fkibana%2525252525252525252525252525252Fkibana%2525252525252525252525252525252Flogin%2525252525252525252525252525253Fnext%2525252525252525252525252525253D%252525252525252525252525252525252Fkibana%2525252525252525252525
Kibana I'm running
root@dsme01:~# netstat -tulpen | grep 5601
tcp 0 0 192.168.150.20:5601 0.0.0.0:* LISTEN 138 88646 1744/node
What am I doing wrong?
Greetings from Stefan Harbich