Report this

What is the reason for this report?

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

Posted on January 28, 2022
AkSu

By AkSu

Hello…

I’m new user on Digital Oceans and ubuntu server. I got some problem with => When i called to mine domains with www.kifuuu.com. 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 kifuuu.com domain names from domains.google 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 kifuuu.com HTTP/1.1 301 Moved Permanently Date: Fri, 28 Jan 2022 03:48:42 GMT Server: Apache/2.4.41 (Ubuntu) Location: https://206.189.147.138/ Content-Type: text/html; charset=iso-8859-1

Question is How to change Location: https://206.189.147.138/ To https://www.kifuuu.com

Thanks in advanced



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.

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 :

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04

Apache :

https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.