http_request_failed - cURL error 60: SSL certificate problem: unable to get local issuer certificate.

J.R. themadbeaker at gmail.com
Thu May 21 18:18:02 UTC 2020


> location / {
>   rewrite .* https://www.dfwelectronicsrecycling.com/$1;
> }

Don't do that...

The correct way when you want to redirect http to https would be:

server {
   listen 80;
   server_name dfwelectronicsrecycling.com www.dfwelectronicsrecycling.com;
   access_log   off;

   return 301 https://www.dfwelectronicsrecycling.com$request_uri;
}


More information about the nginx mailing list