I am using Nginx to run my website on Ubuntu 14.04. I just got it setup a few days ago. Everything was working fine until my router ended up changing my IP address on my Ubuntu server last night. I didn’t known my server was setup with the DHCP protocol, I thought it was static. When my website wouldn’t come up this morning I determined the problem to be the new IP address. I still have a problem though. When I access my server with the new IP address I now get the “Welcome to nginx!” page. My website won’t come up anymore. The only thing that changed was the IP address. I have since programmed my router to reserve the new IP address for my server so that it won’t change again. I also changed my port forwarding IP on my router to use the new IP address so that when my DNS uses my public IP to locate my router it will be forwarded to my server. The thing that makes no since is that the new IP address just brings up the “Welcome to nginx!” page and not my website. All of my files are still in place and nothing else changed. Does anyone have any idea what happened?
Thanks in advance for any advice.
This textbox defaults to using Markdown to format your 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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!