Setup domain from different provider

Hello, I have developed a website working in development mode with my IP. It is running with Nginx.

This is for a client who has his domain name ( registered in a different hosting provider. This provider agreed to redirect to our IP. They told us that it was enough if we give them the IP to make the redirection.

That provider already made the redirection, but I am not sure if this is a simple redirect, because when I enter in the browser, it redirects to the url IP. From my point of view, I expected to persist in browser instead of changing.

I’m not very experienced setting up domains from other providers, that’s why I have the following questions:

  1. Do I have to setup something in DigitalOcean’s panel?
  2. Do I have to setup something in Nginx conf file different than server_name?
  3. Is it possible that the provider with simply my IP redirect to my IP but persisting in browser?

What I tried first was to setup nginx.conf file with server_name, but the application crashed. For that I removed server name.


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey there,

Hm, so this really entirely depends on the other hosting provider your client is using. Do they allow you to modify DNS settings, or set your own nameservers? If so, I’d recommend having them point your nameservers to ours:

From there, you can check out this great Community Article on configuring DNS on our platform.

Now, with regards to your other questions, it sounds like your client’s hosting provider set up a simple HTTP redirect to the IP, but it’s also possible this could be a configuration issue in the application your client is trying to run on our service. Some, like WordPress or Magento (for instance) have an address preconfigured, which defaults to your IP. That’ll cause links to redirect to your IP instead of your domain.

Your nginx configuration shouldn’t matter unless you have a 301/302 redirect configured in there on purpose… which I wouldn’t expect. server_name should be set to the domain, but if that’s the only site you’re running on that server, it does not matter too much.

Hopefully the above helps you out. Please let me know if you need anything else.

Best, Eris Platform Support Specialist