mapcache
mapcache copied to clipboard
Mapcache forgets env var CURL_CA_BUNDLE after first request
Duplicate post to my comment on the original issue to set env vars from config.
Old but still open issue. I can confirm this works fine. For the first request! Are there something somewhere inside mapcache that clears the environment between requests? It seems like it.
System Windows server 2022 IIS 10 + mapcache fast cgi
Steps to reproduce:
- Set
CURL_CA_BUNDLE - Make first request
- Witness one single tile being fetched from a HTTPS-only WMS
- Make a second request
- Recieve a
SSL certificate problem: unable to get local issuer certificate - Restart/kill the fastcgi server
- Goto 2
If i set the fast cgi to reload after just one request everything works but obviously VERY slow. So my best guess is that the environment get reset between request and the part that sets environment variables only does so on startup.
Originally posted by @dafvid in https://github.com/MapServer/mapcache/issues/251#issuecomment-2493793446