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.

Shared domain name website on a single IP

Discussion in 'General Discussion' started by wyattbiker, Dec 7, 2010.

  1. wyattbiker

    wyattbiker Member

    Joined:
    Nov 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I have one shared IP address and a dedicate server with root access. What if I want to setup two domains, but use this exact same code in public_html? I would prefer not to use redirection.

    E.g.

    http://cooldomain1.com --> /home/webmain/public_html
    http://cooldomain2.com --> /home/webmain/public_html

    The above would goto to the exact website. Same code but maybe a modified .htaccess

    Do I create a second cpanel account with the cooldomain2.com and then use the same account name (e.g. webmain)?

    Is this possible?

    Thanks
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The simplest way to do this would be to add the second domain to the first domain's account as a parked domain. A parked domain is a type of alias that uses all of the content of the parent; the parked domain does not have its own document root.

    The following section of our documentation explains cPanel's concept and implementation of parked domains:

    Parked Domains

    Please let me know if you have any questions.
     
  3. wyattbiker

    wyattbiker Member

    Joined:
    Nov 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    This is the answer I was looking for. I set it up and works great. Thank you so much.
     
  4. pascalfringe

    pascalfringe Member

    Joined:
    Dec 6, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Delhi, India
    Yes, Parked domains are also good as its just like an alternate envelope to ur main site
     
Loading...

Share This Page