over https

Hi everyone.

We are starting using Matomo in out organization to unify various statistics scattered all over the place. It works great so far. Thanks.

We are experiencing a little problem while connecting to . For some reason, matomo uses http to initiate connection, which is blocked by our proxy server:

curl -Is
HTTP/1.1 200 Connection established

HTTP/2 200
date: Fri, 28 Jul 2023 06:08:03 GMT
server: Apache

# curl -Is
HTTP/1.1 403 Forbidden
Date: Fri, 28 Jul 2023 06:08:07 GMT
Content-Type: text/html
Cache-Control: no-cache
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Length: 3677
X-Cache: MISS from proxy
X-Cache-Lookup: MISS from proxy:8080
Via: 1.1 proxy (squid/3.5.20)
Connection: keep-alive

We would want to use https from the start. Is there a setting in config.ini for that? So far I put host and port in [proxy] section of config.ini.php . I simply changed:

return '';


return '';

in plugins/Marketplace/config/config.php file and it works, but I am afraid that I will forgot about it during an upgrade. I also triggers file integrity check warning.

Thank You.

I just found about this - . I guess will be migrating to 5 as soon as possible. Which is fine.

Hi @lpcezgovpl, Matomo 5 will use https by default for requests to, but in the meantime you can change the api_service_url config setting to make Matomo 4.x do the same.

api_service_url =

@bx80 Thank You. We’ll do it right away.