• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Domain Mapping

I

iazjrc

Guest
I'm quite new to Plesk and have been looking for a function allowing me to map two or more domains whereby domainname1.com/index.html points to the same file as domainname2.com/index.html. I can't find anything in the control panel and have been googling for some time with no luck.
Previous hosts have been able to do this with an annual fee for the pleasure, so I know it can be done but I don't know where to start.

Could anyone point me in the right direction?

Many thanks.
 
Very simple. Create vhost.conf in the domain.com/conf directory. In that file, put
ServerAlias www.domain2.com or any other names you want to use. Then you need to trigger Plesk to re-configure- with a command like:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=$1

good luck!
 
Back
Top