I recently installed a Wordpress instance on Google's Compute Engine with Google's own one-click install button.
It doesn't let you configure the server or OS so I just took what Google offered (Debian 8 on a 1 vCPU + 3.75 GB memory (n1-standard-1) + 10-GB Boot Disk. It worked perfectly and I was up and running on an IP address: yy.yy.yy.yy in next to no time.
After 5 days Google Compute sent me an alert which suggested that I could save some money (on my free account) by resizing my server to 1.7 GB memory.
Happy to comply, I clicked ok and broke my website. Google had given me a new IP address: xx.xx.xx.xx. Pointing my browser at xx.xx.xx.xx gave me:
This site can’t be reached
xx.xx.xx.xx refused to connect.
Running Lynx on the server gives me the following log:
Looking up 'xx.xx.xx.xx' first Looking up xx.xx.xx.xx first Looking up xx.xx.xx.xx Making HTTP connection to xx.xx.xx.xx Sending HTTP request. HTTP request sent; waiting for response. HTTP/1.0 301 Moved Permanently Data transfer complete HTTP/1.0 301 Moved Permanently Using http://yy.yy.yy.yy/ Looking up yy.yy.yy.yy Making HTTP connection to yy.yy.yy.yy Alert!: Unable to connect to remote host. lynx: Can't access startfile http://xx.xx.xx.xx/
Where yy.yy.yy.yy is the original IP address (before the resize).
It seems that the resize gave me a new IP address. However this now redirects to my old IP address (which no longer exists).
I have updated the siteurl in the wp_options table in the WP database to xx.xx.xx.xx (replacing the old ip address). Restarted apache2 The page is still redirecting to yy.yy.yy.yy ("This site can’t be reached").
I am not very used to reading Apache2 config files but, as far as I can see .htaccess doesn't have any redirects. I can't see anything in apache2.config (and associated files - but I might be missing something)
My Google Compute console doesn't have any unusual firewall rules or routes set up. I am wondering where I might find this redirect. Is it in my Apache2 server or something that Google run in the layer above my VM (my conceptual model of how Google Compute works isn't fully formed). How can I tell?
Advice and suggestions are very welcome and much appreciated. I don't know much about server side things but I am keen to learn.