Hi All,
I have hosting in digital ocean and domain in 1&1.com. Yesterday, I tried to setup server, created my droplet, pointed Digitalocean DNS under my domain in 1&1.com & installed wordpress application.
Near to 1 day it took for pointing. When I accessed my domain using my friends laptop the website was perfect with wordpres application it showed. And also, I check my website on mobile device it is opening perfectly. But when I accessed my domain using my IP which I used to setup all configuration it showed default page like mydomain.com/defaultsite
Why does it happen? Is there any solution for this?
Thanks
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!
@prabhu82 - Look for the server block in files /etc/nginx/sites-enabled defined as the default_server and display a redacted version here. If you don’t have a default_server defined, then pick the server block you want to make the default and define it. For example, if you have
server {
# stuff here
listen 80;
# redirect or rewrite here
}
change it to
server {
# stuff here
listen 80 default_server;
# redirect or rewrite here
}
The issue has been solved. I didn’t do anything it got resolved automatically. Still, wondering what might be the reason for this.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.