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.

Redirect to different domain.

Discussion in 'General Discussion' started by anton_latvia, Oct 28, 2005.

  1. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    hi,
    Our policy is to give each server 2 names, usually ns1.somedomain.com and ns2.somedomain.com. Today I have suddenly noticed, that if I go to ns2.somedomain.com I am beeing redirected to another domain (that also is on that box). I searched for any redirect settings, even added VirtualHost entry to ns2.somedomain.com, but nothing helps. How is that possible?

    :confused:

    Anton.
     
  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
    If you're using the IP address for ns2 for hosting domains on too, then you'd need to make sure that that VirtualHost container for ns2 is the first in httpd.conf to use that IP address (and move the NameVirtualHost directive above it too if necessary).
     
Loading...

Share This Page