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.

View New Account's Site Without Active Domain Name

Discussion in 'General Discussion' started by tturner, Sep 9, 2009.

  1. tturner

    tturner Registered

    Joined:
    Sep 9, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to view an account's site with out having a domain name active?

    I know you can go to: http://example.com/~username/
    and it will show you some, but this doesn't work as PHP isn't used/parsed.

    I need a way to view the client's site before switching over their domain, making the account live.

    Using a subdomain is the best option I've found so far, but I'm just wondering if there is a better method for what I want to do.

    Thanks in advance!
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    We have our servers setup to automatically allow http://login.ourdomain.com
    for new users setup on our servers which is pretty easy to setup for
    automatic access by login subdomain.

    To manually do the same though, all you need to do is add a subdomain
    in the virtualhost appended to "ServerAlias" and make sure you setup
    the same entry in the DNS zone file. Restart both server processes.

    Done in this manner, PHP using SuPHP or phpSuExec will still work and
    the site can be viewed even though the domain is not transferred yet.

    Alternatively, you can put an entry in the "hosts" file in Windows systems
    under c:\Windows\System32\Drivers\etc or /etc on Linux systems and
    have your home computer be able to connect to the site immediately
    using the domain name even if the domain is not transferred yet.

    (What is in "hosts" superceeds normal DNS resolution)
     
  3. tedece

    tedece Registered

    Joined:
    Jul 15, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page