0
votes

I have setup a wordpress website on Google cloud platform. The problem is that it returns error connection refused on https.

Initially the website was using numerical IP address. Then I forwarded my domain to the VM instance IP address using the CloudFlare DNS (I use cloudflare DNS hosting as my domain provider doesn't provide Dns hosting). Changed the WordPress URL in settings to http. The domain now points to GCP VM instance.

I have enabled SSL in Cloudflare. I have enabled always use https in Cloudflare. I have checked that the firewall in VM instance allows HTTPS traffic. I have added the domain to Google cloud as well and verified it. I have manually uploaded the SSL certificate from CloudFlare to Google Cloud and applied it to work with my domain. I have installed CloudFlare Flexible SSL plugin into my Wordpress Woocommerce website.

But none of that helps.

What could be the problem?

1
Whats the domain you are trying ? - Neelam
www.silverjewellery.pk - Furqan Shafi
Right now it's returning 404 error after I enabled Google cloud provided SSL certificate and pointed it to the DNS records provides by GCP in the Cloud Flare settings. - Furqan Shafi

1 Answers

1
votes

Upon inspecting your domain it seems like you need to do following steps :

  1. Please verify this ip 35.185.255.190 is https fe lb ip

  2. Cname record is not pointing towards A record so to do that create cloud dns zone and add entries

  3. Your domian nameservers is not pointing towards Google nameservers , to do that check the entries from cloud dns ns and add it by replacing your domain ns entries

  4. After performing all above steps , verify by dig command

  5. If using Google managed ssl cert in LB then make sure its been added properly and not in provisioning state

  6. Follow this YouTube video as reference