Report this

What is the reason for this report?

Is it possible to reserve the IP of a subdomain?

Posted on December 9, 2024

Hello,

I would like to know how to find the IP of http://galatea.com.ar/sistema/login.php Is it possible to reserve it?

My intention is to migrate the galatea.com.ar website to another hosting and leave only our software hosted on digialocean. How should I proceed?

Thanks Regards



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 there!

If I understand this correctly, it sounds like you want to move your main website to a different host but keep the /sistema/login.php part on DigitalOcean.

This should be doble, one option to achieve this is to do the following:


1. Determine the IP of Your Current Subdomain

You can find the current IP address by running this command:

dig +short galatea.com.ar

This gives you the IP associated with the domain.


2. Split the Hosting Using a Subdomain

Instead of using /sistema/login.php, you can create a subdomain like sistema.galatea.com.ar and point it to DigitalOcean. Here’s how:

  1. Set Up a New A Record in your DNS provider to point sistema.galatea.com.ar to your DigitalOcean Droplet’s IP address.

  2. Configure Your Droplet’s Web Server (Apache or Nginx) to serve the software from the subdomain. Update your virtual host configuration to recognize sistema.galatea.com.ar.


3. Migrate Your Main Website

Move the main galatea.com.ar website to your new hosting provider and update the DNS A record for galatea.com.ar to the new host’s IP.


4. Test and Verify

  • Ensure galatea.com.ar points to the new hosting.
  • Check that sistema.galatea.com.ar points to DigitalOcean and works as expected.

This way, you can separate your main site and software, making it easier to manage them independently. Let me know if you have any questions.

- Bobby

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.