# How to connect Liferay client (using Transport Protocol) to Elastic Cluster through Nginx

**URL:** <https://discuss.elastic.co/t/how-to-connect-liferay-client-using-transport-protocol-to-elastic-cluster-through-nginx/221938>\
**Category:** Elasticsearch\
**Created:** [March 3, 2020, 7:11pm UTC](https://discuss.elastic.co/t/how-to-connect-liferay-client-using-transport-protocol-to-elastic-cluster-through-nginx/221938 "2020-03-03T19:11:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![galew](https://avatars.discourse-cdn.com/v4/letter/g/e99b99/32.png) [@galew](https://discuss.elastic.co/u/galew)\
**Post date:** [March 3, 2020, 7:11pm UTC](https://discuss.elastic.co/t/how-to-connect-liferay-client-using-transport-protocol-to-elastic-cluster-through-nginx/221938/1 "2020-03-03T19:11:09Z")

</div>

Hi!

I have Elasticsearch clusters behind NGiNX.  
Everything has worked great until I try to connect my Elasticsearch clusters with Liferay Client.

Liferay client is using Elasticsearch Native Binary Protocol to connect my cluster and NGiNX seems not to understand this. I have no problems with any java-based transport client going through NGiNX Stream.

If anyone could have a clue what option should be used with proxy to allow Elasticsearch Native Binary Protocol go through please help.

Using Elasticsearch 6.8.6  
Nginx 1.15.9  
Red Hat 7.7

nginx.conf  
---clip----  
stream {  
include /etc/nginx/conf.d/elasticsearch\_tcp.conf;  
}

elasticsearch\_tcp\_conf  
server {  
proxy\_buffer\_size 16k;  
listen 10.100.5.10:8090;  
proxy\_pass 10.20.1.10:9300;

So the Liferay client can connect to cluster without problems if NGiNX is removed. But not through this configuration. But all the other transport clients work without problems.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2020, 7:11pm UTC](https://discuss.elastic.co/t/how-to-connect-liferay-client-using-transport-protocol-to-elastic-cluster-through-nginx/221938/2 "2020-03-31T19:11:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
