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 host problem

Discussion in 'General Discussion' started by dedms, Feb 9, 2005.

  1. dedms

    dedms Member

    Joined:
    Jan 16, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    For some reason a second domain name on my dedicated server gets redirected to another domain on the same server. I have one i.p adres and i'm using name-based virtual hosting. I've tried just about everything in httpd.conf but to no avail. At this moment my config looks like this:

    NameVirtualHost *

    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #
    #<VirtualHost *:80>
    # ServerAdmin webmaster@dummy-host.example.com
    # DocumentRoot /www/docs/dummy-host.example.com
    # ServerName dummy-host.example.com
    # ErrorLog logs/dummy-host.example.com-error_log
    # CustomLog logs/dummy-host.example.com-access_log common
    #</VirtualHost>

    #<VirtualHost _default_:*>
    #</VirtualHost>

    <VirtualHost *>
    ServerAlias www.****.net ***.net
    ServerAdmin ****@****.net
    DocumentRoot /home/****/public_html
    ServerName www.****.net
    <IfModule mod_userdir.c>
    Userdir disabled
    Userdir enabled *****
    </IfModule>
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/***:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    User ****
    Group ****
    CustomLog domlogs/****.net combined
    ScriptAlias /cgi-bin/ /home/****/public_html/cgi-bin/
    </VirtualHost>

    <VirtualHost *>
    ServerAlias www.****.net ****.net
    ServerAdmin webmaster@****.net
    DocumentRoot /home/*****/public_html
    ServerName www.****.net
    <IfModule mod_userdir.c>
    Userdir disabled
    Userdir enabled ****
    </IfModule>
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/****:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    User ****
    Group ****
    CustomLog domlogs/*****.net combined
    ScriptAlias /cgi-bin/ /home/*****/public_html/cgi-bin/
    </VirtualHost>

    I've also put the ip adres of the server in the <virtualHost 1.22.3.4.4> but that doens't solve the issue.

    Are there any other config files i have to look in to? I've searched this forum en google, read the apache manual but nothing helps.
     
  2. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    are you sure the second domain not parked on the first domain?

    with your config above i can't help you, because all seems the same (with ****.net)
     
  3. dedms

    dedms Member

    Joined:
    Jan 16, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    First domain is abc.net, second one zde.net, so the names differ. I've checked the domain parking section of WHM, but no domains are parked. Could it be just the fact that the i.p. address of the server hasn't propegated?
     
Loading...

Share This Page