• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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