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.



LinkBack URL
About LinkBacks
Reply With Quote




