By frdih
I used Wordpress One-click application. Then, I opened my site in my web browser via its IP address. I configured it without a problem. But when I connected to my droplet via console, it prompted me to introduce a domain. Since I own a domain, I didn’t think about it and I just wrote it. However, then I realized I didn’t want my site to be available on said domain until I finished the webpage. Now I want to turn back, because I can’t access my site from the droplet’s IP address and neither from the domain (which is expected since I haven’t and don’t want to associate it with my website in my registrar yet).
How can I configure my droplet so I can access my website using only its IP address? I tried changing ServerName and ServerAlias on sites-enabled and sites-available to the droplet’s IP, but it didn’t work.
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!
Hey friend,
I do not recommend building the site and then switching to the domain afterward, this is a good way to run into problems after the switch and have to troubleshoot a live site that you thought was complete. Instead, I recommend changing your host file on your system to simulate the DNS change, allowing you to work on the site under your domain while everyone else continues to see the domain hosted elsewhere until you’re ready. Here is a guide on editing your host file:
https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/
Jarland
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.