# Need help with enterprise search config

**URL:** https://discuss.elastic.co/t/need-help-with-enterprise-search-config/310997
**Category:** Elastic Search
**Created:** [July 29, 2022, 2:56pm UTC](https://discuss.elastic.co/t/need-help-with-enterprise-search-config/310997 "2022-07-29T14:56:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elastic\_user2](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@elastic\_user2](https://discuss.elastic.co/u/elastic_user2)
#### Post date: [July 29, 2022, 2:56pm UTC](https://discuss.elastic.co/t/need-help-with-enterprise-search-config/310997/1 "2022-07-29T14:56:10Z")

</div>

I have installed Elasticsearch, kibana, and enterprise. I followed the configuration instructions and I keep getting this error:

We can’t establish a connection to Enterprise Search at the host URL [http://localhost:3002](http://localhost:3002)

[(opens in a new tab or window)](http://localhost:3002) due to the following error: Bad Gateway

This is a local install on a dev RHEL 8.3 machine. this is the config in the enterprise-search.yml

allow\_es\_settings\_modification: true

elasticsearch full cluster URL:

elasticsearch.host: [https://127.0.0.1:9200](https://127.0.0.1:9200)

Elasticsearch credentials:

elasticsearch.username: elastic  
elasticsearch.password: password

Elasticsearch custom HTTP headers to add to each request:

elasticsearch.headers:  
X-My-Header: Contents of the header

Elasticsearch SSL settings:

SSL communication with Elasticsearch enabled or not.

elasticsearch.ssl.enabled: true

Path to client certificate file to use for client-side validation from Elasticsearch.

elasticsearch.ssl.certificate:

Path to the keystore that contains Certificate Authorities for Elasticsearch SSL certificate.

elasticsearch.ssl.certificate\_authority: /etc/elasticsearch/certs/http\_ca.crt

Path to the key file for the client certificate.

elasticsearch.ssl.key:

Passphrase for the above key file.

elasticsearch.ssl.key\_passphrase:

true to verify SSL certificate from Elasticsearch, false otherwise.

elasticsearch.ssl.verify: true

---------------------------------- Kibana -----------------------------------

Define the URL at which Enterprise Search can reach Kibana.  
Defaults to [http://localhost:5601](http://localhost:5601) for testing purposes.

kibana.host: [http://localhost:5601](http://localhost:5601)

Define the exposed URL at which users can reach Kibana.  
Defaults to the kibana.host setting value if not set.

kibana.external\_url: [http://localhost:5601](http://localhost:5601)

------------------------------- Hosting & Network ---------------------------

Define the exposed URL at which users will reach Enterprise Search.  
Defaults to localhost:3002 for testing purposes.  
Most cases will use one of:

- An IP: [http://255.255.255.255](http://255.255.255.255)
- A FQDN: [http://example.com](http://example.com)
- Shortname defined via /etc/hosts: [http://ent-search.search](http://ent-search.search)

ent\_search.external\_url: [http://localhost:3002](http://localhost:3002)

Web application listen\_host and listen\_port.  
Your application will run on this host and port.

- ent\_search.listen\_host: Must be a valid IPv4 or IPv6 address.
- ent\_search.listen\_port: Must be a valid port number (1-65535).

ent\_search.listen\_host: 127.0.0.1  
ent\_search.listen\_port: 3002

---

<div class="post-metadata">

### Author: ![maryna.cherniavska](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maryna.cherniavska/32/89935_2.png) [@maryna.cherniavska](https://discuss.elastic.co/u/maryna.cherniavska)
#### Post date: [August 3, 2022, 4:41pm UTC](https://discuss.elastic.co/t/need-help-with-enterprise-search-config/310997/2 "2022-08-03T16:41:05Z")

</div>

Hi @elastic_user2 ,

I assume that you're going off of the [manual here](https://www.elastic.co/downloads/enterprise-search), so please correct me if I am wrong.

From your post, it's not quite clear which rows of the `enterprise-search.yml` are commented out, and which are not. So it's a bit difficult to understand what is going on. Usually, when the `http://localhost:3002/` is unreachable, it means that the Enterprise Search application hasn't started correctly. Would you be able to provide the output from the `bin/enterprise-search` - step 7 from the manual?

It would also help if we could see only the uncommented lines from `enterprise-search.yml`.

---

<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: [August 31, 2022, 4:41pm UTC](https://discuss.elastic.co/t/need-help-with-enterprise-search-config/310997/3 "2022-08-31T16:41:58Z")

</div>

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