# Kibana на 80 порту через реверс-прокси

**URL:** <https://discuss.elastic.co/t/kibana-80/364181>\
**Category:** Вопросы на русском языке\
**Created:** [August 1, 2024, 5:29am UTC](https://discuss.elastic.co/t/kibana-80/364181 "2024-08-01T05:29:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shipovnix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shipovnix/32/136441_2.png) [@shipovnix](https://discuss.elastic.co/u/shipovnix)\
**Post date:** [August 1, 2024, 5:29am UTC](https://discuss.elastic.co/t/kibana-80/364181/1 "2024-08-01T05:29:18Z")

</div>

Доброго времени года!  
Kibana сконфигурирована на порту 5601.  
Установил nginx в качестве реверс-прокси. Конфигурация nginx:

```auto
http {
	log_format	main '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
	access_log /var/log/nginx/access.log main;
	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size	4096;
	include /etc/nginx/mime.types;
	default_type application/octet-stream;
	include /etc/nginx/conf.d/*.conf;
	server {
		listen 0.0.0.0:80;
		#listen [::]:80;
		server_name	msk-as01elast;
		root /usr/share/nginx/html;
		include /etc/nginx/default.d/*.conf;
		error_page 404 /404.html;
		location = /404.html {
		}
		error_page	500 502 503 504 /50x.html;
		location = /50x.html {
		}
		auth_basic	off;
		location / {
			proxy_pass http://127.0.0.1:5601;
			proxy_http_version	1.1;
			proxy_set_header Upgrade $http_upgrade;
			proxy_set_header Connection 'update';
			proxy_set_header Host $host;
			proxy_cache_bypass	$http_update;
		}
	}
}

```

В браузере при переходе по 80 порту получаю ошибку:

 ![001](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd87ac86e7e38d43780647dfdf5eff6cf9e3c6a4.jpeg)  
В error.log nginx:

```auto
2024/08/01 07:56:02 [error] 79650#79650: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.180, server: msk-as01elast, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5601/", host: "msk-as01elast"
2024/08/01 07:56:02 [error] 79650#79650: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.180, server: msk-as01elast, request: "GET /nginx-logo.png HTTP/1.1", upstream: "http://127.0.0.1:5601/nginx-logo.png", host: "msk-as01elast", referrer: "http://msk-as01elast/"
2024/08/01 07:56:02 [error] 79650#79650: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.180, server: msk-as01elast, request: "GET /poweredby.png HTTP/1.1", upstream: "http://127.0.0.1:5601/poweredby.png", host: "msk-as01elast", referrer: "http://msk-as01elast/"

```

Что делаю не так?
