Web server stops working on restore?

  • Posted July 30, 2013

I had a droplet running django and apache+mod_wsgi for a web server. I recently wanted to switch to the S.F. data center so I created a snapshot of my droplet and then destroyed my Ny1 droplet. After i restored my droplet, I visited the I.P. address of my server and I get “It works!” default apache webpage. Everything is still intact and I reloaded apache multiple time but I still no luck. Any help is appreciated.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Run the following command as root: <br> <br>“grep -r -i ‘old IP’ /etc/apache2/sites-enabled” <br> <br>Edit all the files that were listed in grep’s output and make sure your IP address is correct.

What’s the contents of <b>/etc/apache2/sites-enabled</b>? You should also update your DNS records w/the new IP address, if you haven’t done so already.

Yes it has a new IP address and my files are on the droplet, but for some reason django does not show up.

My guess is the new server will have a new IP address, but the snapshot will contain the old IP addresses. Are your files on the new droplet?

Yes, but i visited the new droplet I.P. address, not my domain.

Did you get a different IP address with the new droplet?