Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. wyattbiker

    wyattbiker Member

    Joined:
    Nov 26, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    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:
    51
    Location:
    Delhi, India
    Yes, Parked domains are also good as its just like an alternate envelope to ur main site
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice