Web server stops working on restore?

July 30, 2013 3.7k views
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.
6 Answers
Run the following command as root:

"grep -r -i 'old IP' /etc/apache2/sites-enabled"

Edit all the files that were listed in grep's output and make sure your IP address is correct.
Did you get a different IP address with the new droplet?
Yes, but i visited the new droplet I.P. address, not my domain.
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 it has a new IP address and my files are on the droplet, but for some reason django does not show up.
What's the contents of /etc/apache2/sites-enabled? You should also update your DNS records w/the new IP address, if you haven't done so already.
Have another answer? Share your knowledge.