Closed KarelJanVanHaute closed 10 months ago
I've found a solution to my problem. I use mkcert for my certificates in ddev. This works great. But if you want to use them in a node module. Then you have to run the following command.
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
I'm having the following problem. My site is running on docker through ddev. I have a custom local url, something like https://mysite. When I try to get that sitemap I get the error
When I try it with "http://mysite/sitemap.xml" (so just HTTP) I get:
I guess because in my sitemap all url's are pointing to HTTPS.
When I Curl the Https URL I get a working 200.
When I try it with a similar sitemap from an online website over HTTPS it works just fine.
When I go to it with my browser I get the following code.
When I try to get all the pages from for example "https://mysite/sitemap_1_entry_18_news.xml" this also gives the could not load error. But when I try to get "http://mysite/sitemap_1_entry_18_news.xml" it works just fine. So it has something to do with the HTTPS.