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

Multiple TLD single website

Discussion in 'Plesk for Linux - 8.x and Older' started by OutKa5t, Jul 30, 2005.

  1. OutKa5t

    OutKa5t Guest

    0
     
    Hi,

    is it possible to configure the following?

    I would like one user account to have one hosting area but multiple TLD's i.e domain.NET, .CO.UK ,BIZ etc... of the same domain name so that there is only one website to update when changes are made to the website.

    I dont really want to use forwarding/frame forwarding if I dont have to.

    I am the admin of my server and I am running Plesk 7.5 on Fedora Core 2

    Thanks in advance
     
  2. smerkel

    smerkel Guest

    0
     
    Hey:

    I'm pretty sure the only way to do it through the UI is to do it via forwarding (or frame forwarding). However, Plesk does have some ways for you to tweak Apache directly (if you are the server admin).

    Disclaimer:

    The correct way to do it is with the forwarding functionality within PSA. Following the steps below could cause unexpected behavior if the domain you want to alias to an existing Plesk domain is later added via Plesk. (Basically, whichever one shows up first as Apache parses the config file will be the virtual host container that returns the content).

    With all of that being said, you can override Apache directives for a virtual host, if you have root access to the box, by creating the file vhost.conf (or vhost_ssl.conf if you want to override the SSL virtual host container for the domain). This file goes in /home/httpd/vhosts/<domain>/conf.

    For example, if I have a domain data393demo.com, and I want .biz and .it to pull the site up too, I could create vhost.conf and place it in /home/httpd/vhosts/data393demo.com/conf. This file would contain the following:

    ServerAlias www.data393demo.com www.data393demo.biz www.data393demo.it

    I would save the file and run the following on the command line:

    [root@psa75 conf]# /usr/local/psa/admin/bin/websrvmng -v -a
    [root@psa75 conf]#

    The above command will place the following into the httpd.include file if the vhost.conf file exists for that domain:

    ...
    ErrorDocument 403 /error_docs/forbidden.html
    ErrorDocument 404 /error_docs/not_found.html
    ErrorDocument 500 /error_docs/internal_server_error.html
    Include /home/httpd/vhosts/data393demo.com/conf/vhost.conf
    </VirtualHost>

    Therefore, you can override any directive above the include line by placing properly formatted directives in the vhost.conf file. Be sure to test everything after you make this kind of change, and be sure that you do not mistype any directives as Apache will not restart.

    Once again, I would recommend that you use forwarding, but if you really, really want to do it another way, this is one way you could go about doing it.

    Good hunting...

    Steve
     
  3. OutKa5t

    OutKa5t Guest

    0
     
    many thanks. I will use forwarding where possible but at least now I have a back up option.

    Dave
     
  4. bwlinux

    bwlinux Guest

    0
     
    The problem with forwarding domains in Plesk is 2 fold.

    1. It uses up resources like the doman count, so if you have a limit license with like 30 or 100 domains you'll quickly use those with the aliases domains.

    2. Forwarding a domain doesn't deal with email. Unless you want to set up email forwarding rules for every account. That's a P.I.A.!!!!


    Personally I'm a fan of Total Domains from 4PSA. I've used it on a number of servers and it works for just this problem.
     
  5. jamesyeeoc

    jamesyeeoc Guest

    0
     
    If you don't want to spend the money, then you could do it all manually, by editing the httpd files and qmail control files. But then you'd have to remember what you did manually and gets to be a headache. The 4PSA Total Domains product does the Domain 'parking' or what we call true Aliasing, and does it well.
     
Loading...