The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multi domain hosting??

Discussion in 'General Discussion' started by Ken, Feb 22, 2002.

  1. Ken

    Ken Active Member

    Joined:
    Sep 25, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Could someone tell me how to setup muti domain hosting under one account, ie pointing different domains into different sub folders.
     
  2. Daniel

    Daniel Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    The easiest way to do it is to create a subdomain in the users control panel. Then in WHM park/stack the new domain to the subdomain you just created.

    Domain to park on top of: domain2.domain.com
    Domain to park:domain2.com

    That's the only way I know to do it without manually editing the httpd.conf.
     
  3. gorgo

    gorgo Well-Known Member

    Joined:
    Jan 9, 2002
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    I have a script I got with my hosting provider to do this function
     
  4. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    How does the email function, after doing this for the forward and subdomain?
     
  5. Daniel

    Daniel Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    All mail sent to the stacked domain will go to the main account of the main domain. You can add fowards manually for the stacked domain just edit /etc/valiases/stackeddomain.com.
     
  6. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Or if you add a DNS1=parkeddomain.com to the /var/cpanel/users file you can then manage email for the parked domain in CPanel.
     
  7. Jedito

    Jedito Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    If you add DNS1=parkeddomain.com forwards wont work.
    Its better if you add some rewrite lines to the exim.conf
     
  8. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    [quote:78a114a500]If you add DNS1=parkeddomain.com forwards wont work.
    Its better if you add some rewrite lines to the exim.conf[/quote:78a114a500]

    Forwards work just fine... The user can even manage them along with mailing lists and catchalls in Cpanel based upon the parked domains. A very nice feature. Plus the utility scripts for updating the localdomains file and fixing permissions on the valiases files works if you add the DNS1 entry.
     
  9. LinuxFreaky

    LinuxFreaky Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    Strange Problem

    I just tried out the DNS1=domain.com solution and now mail is being bounced back with this message:


    This message was created automatically by mail delivery software (Exim).

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    test@subdomain.test.com
    SMTP error from remote mailer after RCPT TO:&test@subdomain.test.com&:
    host subdomain.test.com [1.2.3.4]: 550-Host mail.isp.net [6.7.8.9] is not permitted
    550-to relay through mainserver.com.
    550-Perhaps you have not logged into the pop/imap server in the last 30 minutes.
    550-You may also have been rejected because your ip address
    550-does not have a reverse DNS entry.
    550 relaying to &test@subdomain.test.com& prohibited by administrator

    ------ This is a copy of the message, including all the headers. ------

    blahblah...


    What should I do? Help??!!??
     
  10. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:a34af3b911][i:a34af3b911]Originally posted by jumpdomain[/i:a34af3b911]

    Plus the utility scripts for updating the localdomains file .....
    [/quote:a34af3b911]

    Which script is that for updating localdomains?
     
  11. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    /scripts/mailperm does it....
    there is a whole thread about this actually, if you do a search
     
  12. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:d3db4b41f5][i:d3db4b41f5]Originally posted by feanor[/i:d3db4b41f5]

    /scripts/mailperm does it....
    there is a whole thread about this actually, if you do a search[/quote:d3db4b41f5]

    Thanks, I wasn't aware that script was also updating localdomains. Although it does make sense now. ;-)
     
Loading...

Share This Page