Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

help redirect IP after SSL installation

xtrue
New Member

Hello please any help would be appreciated. I created a WordPress app on Google Kubernetes. Google assigned me an IP then  I linked this IP with a namecheap domain (Google domain no available in my country). so far everything worked fine.

On my Google Cloud  account I added the domain and uploaded the SSL certificate. After complete this step Google gave me new IP where the SSL certificate is associated. 

I changed the new IP on my namecheap dashboard and  the new IP has activated the SSL certificates but the problem is that this IP is empty and I get the following:
Error: Page not found
The requested URL was not found on this server.

This new IP has nothing to show. So, I need to redirect my initial IP (where is my content) for the new IP  assigned after SSL installation.

Thanks in advance.

0 2 217
2 REPLIES 2

Hello @xtrue ,

Please be aware Google Cloud Community is not the best place to troubleshoot issues, this forum is focused on Google Product related questions and answers. Either Stack OverflowServer Fault would be more appropriate. Even better, it is a very good idea to create a GCP Support Case if you are facing a production issue.

Hi @xtrue,

@grobledo is right about the Stack Overflow and Server Fault, you'd probably get more support on this issue there.

But because you've posted here I'd be curious why have you deployed WP onto K8s? Kubernetes isn't designed for this, I mean at all, it's exactly the opposite.

You'd be better off if you deploy your WP site using VMs with auto-scaling group (for peak load) with a shared disk between these (for code / file) and slap a Load Balancer in front of these (for HA) with SSL offloading straight at the LB level.

Don't waste your time with K8s, this hasn't;t been designed for such workloads, is been designed mainly for stateless type of applications. Deploying WP on K8s is twice as hard to maintain than using a classic VM solution as mentioned above.

What are you doing with your PHP sessions which with a default WP installation these are written to disk?

You planning to use Memcache or Redis for sessions? Then you'll have to take into account that these can go away anytime (by design) if you're using just one pod... so you'll need a cluster.

What about WP updates and / or plugins? You can't do that unless you attach volumes to your K8s otherwise you'll have to build and push the image every time a new update is released for one of these.

What about your content / images...

Too many things that IMO will not be a pleasant ride for you. I'd drop K8s and go with a classic setup.

Top Labels in this Space
Top Solution Authors