elastic / elasticsearch-php

Official PHP client for Elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
MIT License
5.25k stars 963 forks source link

Elasticsearch behind Proxy Server #1372

Closed sh3bang closed 8 months ago

sh3bang commented 8 months ago

Hello,

Hello, since i've upgraded this library from elasticsearch-php version 7.16 to 8.10 i can't use server addresses like "http://elastic.foobar.com/elastic/" anymore.

The ClientBuilder parse the URL correctly into protocol, hostname, port an path, but when i use some API (i.e. aliases API) the path (/elastic) wont be respected. The request is directly going to "http://elastic.example.com/_cat/aliases" and not to "http://elastic.example.com/elastic/_cat/aliases".

sh3bang commented 8 months ago

https://github.com/elastic/elastic-transport-php/pull/19

ezimuel commented 8 months ago

This should be resolved in elastic-transport-php v8.8.0