Removing port from base URL for media files

I am using a proxy that receives HTTPS calls (443) and redirects them to Apache in a different port (2443). With Omeka-s, everything works well (including the normal pages e sites) apart from media files. After a close look, I noticed that Omeka adds the port to the URL to retrieve the files, for example:

https://example:2443/files/asset/3f961f901e55e220661a754f931466d55fb4132f.jpg

Any idea how can I remove the :2443 from the base url for files?

You can explicitly configure the base URI for files in your config/local.config.php:

    'file_store' => [
        'local' => [
            'base_uri' => 'https://example.com/files',
        ],
    ],

It works perfectly. Thank you very much!

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