How to change server ip address to domains in droplets ubuntu server ?


I’m new user on Digital Oceans and ubuntu server. I got some problem with => When i called to mine domains with But it doesn’t work in domain name. It works in ip address on browser. How can i fix in mine server or droplets. I bought domain names from with already forwarded to http to https.

I searched and read some tutorials from Digital Oceans. Thats the commands i runned in ubuntu terminal.

magicdemon:~$ curl -Il HTTP/1.1 301 Moved Permanently Date: Fri, 28 Jan 2022 03:48:42 GMT Server: Apache/2.4.41 (Ubuntu) Location: Content-Type: text/html; charset=iso-8859-1

Question is How to change Location: To

Thanks in advanced

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Hi @AkSu,

So, the first step to making your domain work from a Droplet or in a matter a faster anywhere is to point your A record to your Droplet’s IP address.

Once you have that, on your Droplet, you need to install a WebService for your Droplet to serve the files of your Domain. There are typically two choices Nginx or Apache. In its essence, both can do the same thing but Nginx is better in one thing, Apache in another. I’ll provide you with a tutorial for both on how to use them, configure them and install them.

Once you’ve done the above, your Domain will load from your new Droplet.

So, here are the tutorials as mentioned:

Nginx :

Apache :