Plesk: Setting Up 2 Domains to the Server

Salutations,

Here’s the situation:

(quick background info)
Our site used to be hosted with on a Godaddy “shared” account but got tired of the constant nuances of shared hosting and recently acquired a new VPS at 1and1.com with Plesk 9.0.1. With a lot of hard work and patience we were able to get our e-commrece site up and running on the VPS.

There’s only one issue left: our domains are not set up properly.

In order to avoid any down time, we left our live site with our primary domain name (mydomain.com) while we setup the VPS with a temporary domain (mydomain.info).

So our site right now is setup on mydomain.info. When we added our primary domain name to Plesk (mydomain.com), Plesk created a separate account for it. We added an .htaccess with a 301 redirect just to get by.

The problem is that when people get to the site the .info domain shows instead of the .com.

On our old shared hosting account we could just point the domain to the correct folder. We done a lot of research to try to figure this out including reading the Plesk manual, and posting on the Parallels forum. Something that used to be really is somewhat complicated on the VPS.

Question: How can we get our .com domain to point (not forward) to our main hosting account, in Plesk?

The learning curve when switching from shared to VPS is steep and intense!:eek:

Any pointers would be greatly appreciated.

Thanks,
C.

:slight_smile: glad to help

wickedinternet,

Awesome, that worked!Thank you for helping with this.:slight_smile:

I first had to delete .com domain account. Once that was done, then I used the guide make it an Alias.

I knew it should have been a simple fix. “Alias” is the term I was missing in my searches.

Getting our VPS configured has certainly been challenging. :sick: But at last, it’s done. :smiley:

Best Regards,
C.

Aha ok. In Plesk you don’t need a new account, you need to add a domain alias under the same account as the .info.

Check here: http://download1.parallels.com/Plesk/PPP9/Doc/en-US/plesk-9.5-clients-guide/index.htm?fileName=59085.htm

It looks as though you’ve created a new account then enabled domain forwarding instead of adding a domain alias to the same account as the .info.

The step you’re missing is getting your .com domain added to your provider’s nameservers. If its set up correctly with an A record it won’t redirect to the .info

That’s actually what already did. I set the name servers on the .com domain to the same one’s the info is on. I was hoping it would have been that easy but it wasn’t. When I added the domain in Plesk… it created a separate account for that domain (with it’s own folders, and everything). That’s were it’s confusing. I can’t find a place on Plesk to associate that domain with the domain that already has an account. That’s what I’m trying to figure out how to do.

:slight_smile: no problem.

It sounds as though you aren’t running your DNS but are depending on the one from the 1&1.

In that case you will need to get them to add your domain to their nameserver list and point it to your VPS then change the nameserver settings of your domains to be the same as your .info one.

I think the DNS is through 1and1 because when we purchased the VPS there was screen which gave us the nameservers for the .info domain.

NS51.1AND1.COM
NS52.1AND1.COM

Other than that we just “created a new domain” in plesk and it was up and running. There is no client account setup on our VPS because we only intend to host this one site.

btw: thanks for respond:)

Are you running a nameserver on the VPS machine?

The A record is setup correctly. I added the 301 redirect by placing an .htacess file in the the folder which plesk created when I added the domain to plesk. The problem is that the .com domain has it’s own account/folder in plesk. Instead I want it point to the account/folder for the .info since that’s where our website is setup.

Plesk did not give me an option to add another domain to an existing domain account. Does that make sense? But that’s what I need to do because our site is running on the .info domain account and all our site files are located there: /var/www/vhosts/mydomain.info/httpdocs/

Plesk created this path for our .com: /var/www/vhosts/mydomain.com/httpdocs/

I didn’t want plesk to create this for the .com name, I just want to add it to the existing account.