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

How do I create (I think they're called) Add-on domains?

Discussion in 'Plesk for Linux - 8.x and Older' started by marcamos, Feb 29, 2008.

  1. marcamos

    marcamos Guest

    0
     
    Here's my scenario:

    I have the following domain names and individual hosting accounts for each one of them (all on Plesk 8.3, on a MediaTemple server):

    www.website1.com
    www.website2.com
    www.website3.com

    Again, each of them is hosted in a unique hosting account.

    Now, my goal is to use only one hosting account and create directories, like so:

    www.website1.com/website2/
    www.website1.com/website3/

    Inside of the website2 directory will be the entire contents of website 2, same thing for the website 3 directory.

    Next, when someone types into their browser's address bar either of the www.website2.com or www.website3.com domain names (which I will continue to own and pay for), I'd like them to be brought to the appropriate directory on the www.website1.com hosting account, so:

    www.website2.com brings people to www.website1.com/website2/
    and
    www.website3.com brings people to www.website1.com/website3/

    Finally, I don't want the URL in the address bar to reveal that they're actually in a directory of another domain name.

    Can this be setup in Plesk? I poked around, but only found Domain Aliases.

    Thanks for any help you can provide!
     
  2. DaDomainMasta

    DaDomainMasta Guest

    0
     
    Plesk can not handle the situation, this is to be done via custom vhosts.conf. not sure about hiding the URL, most likely it will work, but the document root will be made like this:
    open website3.com/vhosts.conf and set DocumentRoot:

    <VirtualHost IP:80>
    ServerName website3:80
    ServerAlias www.website3.ru
    UseCanonicalName Off
    DocumentRoot /var/www/vhosts/website1.com/httpdocs/website3
    CustomLog /var/www/vhosts//website1.com/httpdocs/website3/statistics/logs/access_log plesklog
    ErrorLog /var/www/vhosts//website1.com/httpdocs/website3/statistics/logs/error_log

    do not forget to enable php,cgi and other stuff.
    <IfModule mod_php5.c>
    blahablhablha
     
  3. dasmo

    dasmo Guest

    0
     
    Use PHP to include different pages based on the host name is probably the easiest way.
     
Loading...