I'm working to set up an autoscaled WordPress site with Nginx on Compute engine,
Here's my workaround:<ol><li>
I have set up an Instance on which Installed Nginx and set up my WordPress site.</li> <li>
Created a cloud SQL instance for the database of WordPress site.</li> <li>Create Custom Compute Engine Image from my Instance Disk on which I have set up my WP site.</li> <li>Then Create an Instance Template using the custom Image I have created.</li> <li>Then create my required 4 managed, autoscaled instance groups based on the my Instance Template.</li> <li>Setup an HTTP Load balancer and add all of 4 instance groups in Backend service.</li> <li>Also, add a health check with the PORT
TCP 80and PATH
/When I access the external IP it returns an error like:</li> </ol><blockquote> <ol start="404"><li>That’s an error.</li> </ol>
The requested URL / was not found on this server. That’s all we know.</blockquote>
Help me, please!
Thanks in advance!Answer1:
Judging by what you mention, you have followed what is mentioned over at <a href="https://cloud.google.com/load-balancing/docs/https/setting-up-https#troubleshooting" rel="nofollow">https://cloud.google.com/load-balancing/docs/https/setting-up-https#troubleshooting</a>, however, I would recommend to check out this guide <a href="https://blog.realkinetic.com/http-to-https-using-google-cloud-load-balancer-dda57ac97c" rel="nofollow">https://blog.realkinetic.com/http-to-https-using-google-cloud-load-balancer-dda57ac97c</a> as it contains a more in depth explanation on how to set up the load balancer using GCP. It seems to me that you miss configured something but it is hard to tell only by what you listed.