1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Domain Mapping

Discussion in 'Plesk for Linux - 8.x and Older' started by iazjrc, Apr 4, 2006.

  1. iazjrc

    iazjrc Guest

    0
     
    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.
     
  2. falcon7

    falcon7 New Pleskian

    22
    57%
    Joined:
    Jul 1, 2002
    Messages:
    10
    Likes Received:
    0
    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!
     
Loading...