Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    5

    Default Virtual host problem

    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. #2
    Member
    Join Date
    Apr 2004
    Posts
    220

    Default

    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. #3
    Member
    Join Date
    Jan 2005
    Posts
    5

    Default

    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?

Similar Threads & Tags
Similar threads

  1. main shared virtual host IP problem and Cant resolve domain name
    By raamee in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 03-20-2011, 01:24 AM
  2. Virtual host
    By pinehead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-11-2007, 09:56 PM
  3. Creating a new virtual host
    By cacathcart in forum New User Questions
    Replies: 2
    Last Post: 10-25-2006, 07:33 AM
  4. Virtual Host
    By zaqizaba in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-20-2005, 11:18 AM
  5. mailman & virtual host
    By newfield in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-20-2002, 08:13 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube