How to access my site without a domain?
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.
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.×