Jump to content

Wants to access site on other server


Recommended Posts

I am in the process of migrating our store from our old VPS to our new one.

 

On the new VPS, it is forwarding the visitor to the other IP. I am testing the new server to make sure it is loading fine, but can't tell since it is doing this. I have disabled the .htaccess to see if that would fix it and it is the same thing.

 

I haven't changed the IP for the site yet so the old VPS server is loading it fine and will until change the IP. The new VPS has a new IP so that would of course be serving the site once I change it.

 

Also when I tried to have it access the database from the new VPS server, it won't connect. I have made sure the permissions are good, remote connection, the new server accepts the conncetion from the IP on the old VPS and made sure the user name, datbase name and password are correct.

 

For now, I am accessing the site on the old server and old database until I can figure out what is going on to make sure when I move the site tomorrow, it won't be down since customers are ordering etc...(I prefer to access the new database now since it is in sync at the moment).

Link to comment
Share on other sites

so to recap, you have your site running on both the old and new VPS servers.

the IP address on the old and new VPS servers are different.

your domain name for the store is the same on both old and new servers.

 

For arguments sake, your domain name is registered with godaddy.com (it's irrelevant if that is not true). the DNS settings is pointing to a set of name servers, and that name server I assume resolves your domain name to the old VPS server.

 

if that is all true, then I expect a user who enters your domain name will be directed to the store on the old VPS server

Link to comment
Share on other sites

so to recap, you have your site running on both the old and new VPS servers. -YES

the IP address on the old and new VPS servers are different. -YES

your domain name for the store is the same on both old and new servers. -YES

 

For arguments sake, your domain name is registered with godaddy.com (it's irrelevant if that is not true). the DNS settings is pointing to a set of name servers, and that name server I assume resolves your domain name to the old VPS server. -YES

 

NOW - when I access the site using the NEW IP address, it is redirecting to the old server.

Link to comment
Share on other sites

you are using the IP address in the browser? how would the new VPS server know what domain you are trying to access?

 

typically when I try what you are doing, I alter my windows hosts file (i assume you are using windows), so that my computer "thinks" the domain is associated to the new IP address, while the rest of the world knows the domain points to the old IP address.

 

typically the host file is located in

c:\windows\system32\drivers\etc

 

if using vista or windows 7, you might need to edit the file using administrator privileges.

Link to comment
Share on other sites

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
×
×
  • Create New...