Forum Moderators: phranque

Message Too Old, No Replies

Server alias problem

Strange domain problem...

         

KennyJ

10:05 am on Oct 9, 2003 (gmt 0)

10+ Year Member



I have a main domain name - www.mydomain.com (mydomain is just an example) and then several other domains all set to the IP of www.mydomain.com.

Apache httpd conf is set up with server alias of all the other domains so they resolve to www.mydomain.com.

This has been working OK.

The server crashed yesterday and now I've noticed a problem with one of the domains...

[theotherdomain.co.uk...] - works OK but
[theotherdomain.co.uk...] displays the pages from www.mydomain.com but fails on anything server side - won't do SSI and can't find the cgi-bin.

Even stranger... for 404 it displays the Apache server as the.theotherdomain.co.uk when I have never set up a the.theotherdomain.co.uk!

I went as far as removing the alias from httpd.conf but it is still accessing the files.

I guess the reason for this is probably something stupid but I'm stumped...

claus

10:14 am on Oct 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you real domain (without the www subdomain) might be set up to forward to the address with the www subdomain. This address, in turn, points to the IP that hosts your pages. That's a really odd setting, and it makes no sense to do it this way (i'm not even sure you can do it, but perhaps you have just proved it possible).

The right way to do it is to make the www subdomain a CNAME alias in your DNS setting (it's a DNS alias, not a server alias). Something might be messed up here. Try running a report on dnsreport.com and see which problems show up.

As for "the.theotherdomain.co.uk", i haven't got a clue whatsoever.

/claus