Sign in to follow this  

[web] Apache subdomains with only IP

This topic is 2635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm not super experienced with configuring Apache yet, and am looking for some help.

I just got a new VPS server, and I'm in the process of migrating my site to it.
There's the main site: www.mainsite.com
But also several subdomains: subversion.mainsite.com, etc...

I think I can set these up using Apache Virtual Hosts, but I'm a little unsure how to do that since I can only access my new server through its IP (as in, just the numbers, such as 209.85.225.147). My domain name "mainsite.com" still points to my old shared-hosting server, and I don't want to transfer it until the new one is ready. Can I get the new one ready (which will require actually accessing it remotely from a browser) with just the IP? All documentation and tutorials I've found have assumed a domain name, not simply the IP, but I don't want to purchase a temporary one for such a short time (and don't want to point the current one away from the functional site at the moment).

Share this post


Link to post
Share on other sites
The easiest thing to do would be to just grab a free subdomain from dyndns.org or somewhere, solely for development.

Share this post


Link to post
Share on other sites
An easy solution is to alter you local hosts (works on windows/linux) file with whatever subdomains/domains you need pointing to the correct IP of the new server. This will let HTTP virtual hosts work correctly on the new server, and not affect your live server until you are ready to change DNS.

Share this post


Link to post
Share on other sites

This topic is 2635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this