Problem loading an IIIF image from an external image server

I’m using an Omeka S 3.0.2 version, the latest version of IIIFServer (3.6.3.3) and we have installed an image server IIPImage on another server.

We are behind a Proxy and we had declared in the config/local.config.php file and in the laminas-http/src/Client.php, the Proxy adapter. We have set the proxy_host in the laminas-http/src/Client/Adapter/Proxy.php

We need to use the Proxy adapter and we have no problems with any module that requires to get out (e.g. : CSVImport, Omeka2Importer, ValueSuggest, Zotero Import,…).

I am trying to add an IIIF image from our image server to an item.

And I get the following error:

Error reading IIIF image: Misdirected Request (421)

The response returned by calling the doRequest() function within the send() function of laminas-http/src/Client.php is as follows:

Response : HTTP/1.1 421 Misdirected Request Date: Wed, 07 Jul 2021 13:34:23 GMT Server: Apache/2.4.35 (IUS) OpenSSL/1.0.2k-fips Content-Length: 322 Connection: close Content-Type: text/html; charset=iso-8859-1
Misdirected Request

The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.

If I access the image directly via a browser, it works.

If I add an image located on another server outside
(e.g. : https://gallica.bnf.fr/iiif/ark:/12148/btv1b8626777x/f13/info.json), I don’t have this problem.

If I declare in the config/local.config.php file the Curl adapter, adding the two images works.

Does anyone have any ideas ?

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