Web Hosting Talk







View Full Version : httpd problem?


nwtg
10-24-2003, 04:42 PM
I think I have an httpd problem.

Say my primary domain on the server is server1.com and I have one client, client.com.

People can get to www.client.com just fine if they type in www.client.com in their browser. However, if they type http://client.com in their browser, it automatically forwards them to http://www.server1.com.

Can anybody tell me why?

Asverse
10-24-2003, 05:37 PM
What control panel software are you using (if any)?

nwtg
10-24-2003, 08:24 PM
None.

webworkz
10-24-2003, 08:59 PM
Sounds like you have;

ServerName www.client.com


You are missing:
ServerAlias client.com


Add that to the virtual host container, and reboot httpd. Since httpd can't find an entry for just plain ol' "client.com", it goes to your web site as it is probably the first virtual container in the httpd.conf file. ;)

nwtg
10-24-2003, 11:47 PM
Hey webworkz - thanks so much, wanted to let you all know that I fixed it about 3 hours ago (sorry for lack of update) and it was exactly what webworkz said. :)

webworkz
10-24-2003, 11:49 PM
It's always good to answer it, even if it's your own question. That way, someone searching the forum will get their answer without having to post about it all over again. ;)

nwtg
10-25-2003, 01:49 AM
Agreed! I appreciate your reply to the message.