Help - Search - Members - Calendar
Full Version: Aliasing a second domain over existing in Plesk
The Planet Forums > Control Panels > Plesk
villaje
How can you "alias" a domain over an existing domain in Plesk? So when you go to either domain it pulls up the main site. With Ensim it is real easy, but looked around in Plesk and not sure how this is done. Can someone please help and give instructions how to do this?
Thanks
JV
villaje
Any clue anybody?
Squire
It's not something you can do right from Plesk currently. You could set up the aliased domain as a Frame Forward, but that's not true aliasing.

Via command line one thing you can do is to drop a ServerAlias into the vhost.conf of the domain you want everything to point to. In this example "maindomain.com" is the domain the pages will be served from. "domaintwo.com" is the domain you want to point (alias) to another location.

1. Log in via SSH and -su to root
2. Create a vhost.conf file for the main domain.
cd /home/httpd/vhosts/maindomain.com/conf
nano -w vhost.conf
3. Add a couple of ServerAlias lines.
ServerAlias domaintwo.com
ServerAlias www.domaintwo.com
4. CTRL+X to exit and save the changes.
5. Rebuild websrvmng to get the changes noticed.
/usr/local/psa/admin/sbin/websrvmng -v -a
6. You're done.

Note that the above will not cause mail sent to domaintwo.com to be delivered to maindomain.com. If you want to make it a complete alias, you'll want to do something like is outlined in this post.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.