I have elasticsearch server listening to https (443).
When I'm set configuration like this:
$wgCirrusSearchClusters = $wgCirrusSearchWriteClusters = array( "default"=>[[ "host" => "https://HOSTNAME", "port" => 443 ]] );
Cirrus is trying to curl to http://https://HOSTNAME:443.
If I ommit the https prefix, like this
$wgCirrusSearchClusters = $wgCirrusSearchWriteClusters = array( "default"=>[[ "host" => "HOSTNAME", "port" => 443 ]] );
Cirrus is curling to http://HOSTNAME:443.
Very wild guess: this relate to code on
Elastica/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php (line 56)
if (!empty($url)) { $baseUri = $url; } else { $baseUri = $this->_scheme.'://'.$connection->getHost().':'.$connection->getPort().'/'.$connection->getPath(); }
Because $this->_scheme is fixed ad http (see line 24), the php try curl this strange url.