Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Domain and Sub Domain on Different Servers?

Can I do that?

         

m2c1r

7:22 pm on Sep 7, 2006 (gmt 0)

10+ Year Member



This may be a dumb question, but I don't know the answer.

I have my main domain, widget.com, hosted on one server because it requires cold fusion. I have another application, which needs php, that I would like to run on a subdomain, function.widget.com and link them together. Can I have the subdomain reside on a different server where php is available while the main domain is on the original server working with cold fusion?

I would think so, but I don't want to make plans around something that isn't going to fly.

Philosopher

7:37 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



absolutely.

I've done the exact same thing on a few sites.

I simply set up the hosting for the subdomain at the host I wanted, then created an A record for the subdomain I wanted and pointed it to the IP address of the new host.

GeorgeK

6:28 pm on Sep 8, 2006 (gmt 0)

10+ Year Member



Philosopher is absolutely correct. It's actually good practice for some issues, too.

For example, you might want to test a new version of a site, and have: [new.example.com...] on a different server to experiment with.

Or, you might want to serve images from a specialized server at [images.example.com...] that has a specialized webserver that doesn't support CGI/PHP/MySQL, etc.

Or, you might purchase a new script, and don't want it to affect a production server that is working perfectly. So, you get a cheap account at a shared host, and have it handle [messageboard.example.com...] for instance.

m2c1r

11:03 pm on Sep 8, 2006 (gmt 0)

10+ Year Member



Thanks. I appreciate the help.

LifeinAsia

11:22 pm on Sep 8, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Of course, you could always run CF and PHP on the same box if you didn't want to split them.