hi, I met a issue by accessing kibana from a domain name, but by IP address that is fine.
Here is my ngnix config file, I have configed reverse-proxy for kibana, I can access the server by the ip address without any problem. for example suppose my ip address is 10.10.10.1, I can access kibana by http://10.10.10.1 from the browser, however if I am using the domain name, the page is stuck in the kibana loading screen.
by domain name I mean by http://www.test.com, it is stuck in the loading screen.
server {
listen 80;
server_name www.test.com;
error_log /var/log/nginx/kibana.error.log;
access_log /var/log/nginx/kibana.access.log;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
rewrite ^/(.*) /$1 break;
proxy_ignore_client_abort on;
proxy_pass http://localhost:5601;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
I have checked the /var/log/nginx/kibana.access.log, the difference I found is that after kibana.bundle.js is load, the process stops. and for the normal log which is accessed by ip. the next step would be to get the "/ui/fonts/open_sans/ ", see logs below.
can anyone help on this issue. I was in a hurry. Thanks in advance. Also in the error case, I notice this is error ‘Uncaught SyntaxError: Unexpected end of input’ in the console of the chrome devtools.
Error log:
114.93.211.105 - admin [22/Jun/2018:00:54:35 +0800] "GET /bundles/commons.bundle.js?v=16627 HTTP/1.1" 304 0 "http://www.test.com/app/kibana" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
114.93.211.105 - admin [22/Jun/2018:00:54:36 +0800] "GET /bundles/kibana.bundle.js?v=16627 HTTP/1.1" 304 0 "http://www.test.com/app/kibana" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
successful log:
114.93.211.105 - admin [22/Jun/2018:00:58:02 +0800] "GET /bundles/kibana.bundle.js?v=16627 HTTP/1.1" 304 0 "http://10.10.10.1/app/kibana" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/
537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
<<<<<after get bundle.js, should get the fonts, but this is not happen when access by the domain name.
114.93.211.105 - admin [22/Jun/2018:00:58:03 +0800] "GET /ui/fonts/open_sans/open_sans_v13_latin_regular.woff2 HTTP/1.1" 304 0 "http://10.10.10.1/app/kibana" "Mozilla/5.0 (Windows NT 10.0; Win6
4; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"
114.93.211.105 - admin [22/Jun/2018:00:58:03 +0800] "GET /api/console/api_server?sense_version=%40%40SENSE_VERSION&apis=es_5_0 HTTP/1.1" 200 10586 "http://10.10.10.1/app/kibana" "Mozilla/5.0 (W
indows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"