1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

2 domains 1 webspace?

Discussion in 'Plesk for Linux - 8.x and Older' started by dean_dodd, Mar 16, 2005.

  1. dean_dodd

    dean_dodd Guest

    I need to give 2 domains access to the same webspace how can I do this with plesk?

    so www.domain1.com and www.domain2.com both return /home/domain/html

    I am concerned about using frames as they are not search engine friendly from what I know?

    How can I do this?

    If I were to edit the apache config file manually and create a second virtual host for the second domain would it get removed it I used plesk to make any changes? is this the best/only way?

  2. eWebtricity

    eWebtricity Guest

    Why do you need both domains to access the same webspace?

    Have you thought about creating symlinks?
  3. dean_dodd

    dean_dodd Guest

    I have 2 domains a .co.uk and a .com that need to show the same site.

    Could you explain a little more on using symlinks to do this?

  4. Who-m3

    Who-m3 Guest

    Easiest method for you would be to set up physical hosting for one and redirect hosting for the other. This way, you'd automatically get all visitors to the same site, allowing you to operate with ease.

    Other options would be for you to explore the vhost.conf alternative, allowing you to more adequately set up the site to operate with the same domains.

    Either way, you'll need to understand the pros and cons of each method. Utilizing two domains for one site can become a problem if you start having e-mail on the different domains. An easy fix for that would be to search the forums for the "Alias" script, which will handle the vhost.conf as well as the mailbox alias settings. However, this too has flaws in that it doesn't manage the domain for you.

    Pros/Cons.. Oh joy..

    Pros/Cons of "Redirect" option:

    1. Redirects to site you specify
    2. Gives ability to have separated e-mail (.co.uk and .com email differs)
      1. Takes another space in your available domains (if you're limited)
      2. Separate's e-mail, making it harder to manage things if you have a lot of e-mail addresses[/list=1]

        Pros/Cons of "vhost.conf" or the "Alias" option:

        1. Allows you to use one domain for everything, even though other domains can be used, they'll switch to the primary domain.
        2. Reduces confusion, as everything is set to a primary domain, everything else merely shows it.
          1. Doesn't handle the domain (DNS)
          2. Could (under update circumstances) loose data in mail configuration (mail alias) resulting in mail at .co.uk not showing up on .com, but getting bounced. You would have to keep an eye on this.

            Anyway, that's just my two pennies, hope it helps you out some.
  5. dean_dodd

    dean_dodd Guest

    I'd love to use the redirect option but I need the URL to have the domain which was accessed, so if they come in on www.domain.com then the url is www.domain.com/index.php and if its www.domain.co.uk then its www.domain.co.uk/index.php.

    I'll look into the vhost.conf and alais options some more thanks for suggesting those. From searching around it seems this is a problem many people have had is it something SWsoft are going to build into a future release?

  6. cyberspeed

    cyberspeed Guest


    I have the same problem. I have five domains that need to all point to the same website and I don't want to use five domain spaces in plesk.

    How would I do it using the conf file?
  7. alfmanuel

    alfmanuel Guest