Does elasticsearch support listening on a non root path for the URL?

I have my elasticsearch deployed as a Docker container on AWS, sitting behind an Application Load Balancer. The container is listening on port 9200 as usual, but I'm using path based routing for all my micro-services behind the ALB. So https://mydomain.com/ routes to our Web App and https://mydomain.com/search/ routes to elasticsearch, but when elasticsearch receives the query it thinks I'm trying to query the search index. Is there a way to tell elasticsearch that it's base URL is https://mydomain.com/search/? Is network.bind_host the proper option?

network.bund_host is for where Elasticsearch will listen to, IP or hostname or interface, not a path.

So this isn't something that Elasticsearch can handle for you and you need to do that in your LB.

Ok, thank you Warkolm

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