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.

Virtual hosts problem

Discussion in 'General Discussion' started by mgdoyle, Jul 24, 2004.

  1. mgdoyle

    mgdoyle Member
    PartnerNOC

    Joined:
    Apr 24, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I transferred accounts from a shared server to a dedicated server. I have not yet switched the DNS.

    When I try to display the web sites on the shared IP by using http://<IP address>/~domain, some of them work and some of them do not.

    One site displays properly. The rest of them redirect to the first virtual host's (that is, the one that is listed in httpd.conf first) ServerName which, because the DNS has not been switched, is still on the old shared server. The one that does display properly is not the first virtual host in httpd.conf.

    Any ideas about this strange behavior? Thanks in advance.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    For starters, you must use a trailing slash: http://<IP address>/~account/
     
  3. mgdoyle

    mgdoyle Member
    PartnerNOC

    Joined:
    Apr 24, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Well, I'll be. How simple was that? :)

    Thanks tons!
     
Loading...

Share This Page