domain forwarding and virtual hosts

  • guthrie
  • Born
  • Born
  • guthrie
  • Posts: 1

Post 3+ Months Ago

(I had to rewrite domain names to post this - seems odd for a hosting forum! So I replaced dot with underscore...)
I had a new domain new_com forwarded to an existing system old_com, using goDaddy's domain forwarding and masking.

On the machine old_com I have apache2 setup to virtual host both domains, and they have different landing pages.

But with this setup, I do go through their hosting and forwarding, and arrive at the old_com machine, but get it's old_com home page. The requests arrive at old_com with it's name as the target. I want to use it's IP, but send with a new_com target name.

So I turned off forwarding, and manually set the new_com DNS a-record to point directly to the IP of old_com, and now it works fine.

But I don't like the fact that I have a hard-wired IP in this 2nd level DNS, I'd rather have a domain name like I had with the forwarding setup, otherwise if old_com gets moved to a new IP, new_com breaks..

Is there some better way to do this?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.