URGENT- WWW Problem
Author
Discussion

GregE240

Original Poster:

10,857 posts

291 months

Thursday 4th March 2004
quotequote all
Help!!

Out of my skills range here, so I'm posting on behalf of a colleague:

His website has gone down. Well, sort of.

You can no longer type in www.mysite.com as it comes back with a 404. However, if you drop the www and just put in http://mysite.com it works fine.

Any idea whats wrong? I'm

Many thanks,

Greg

PS - this is a commercial site, hence the urgency.

tja

1,175 posts

278 months

Thursday 4th March 2004
quotequote all
Do both sites (with and without www) resolve to the same IP address?

Check with the hosting company to make sure that both sites (with and without www) are pointing to the same location of the server.

Plotloss

67,280 posts

294 months

Thursday 4th March 2004
quotequote all
YHM

GregE240

Original Poster:

10,857 posts

291 months

Thursday 4th March 2004
quotequote all
Yes Matt it is.

ErnestM

11,621 posts

291 months

Thursday 4th March 2004
quotequote all
DNS problem?
(be sure and check "A" Records)

Reconfigured web server that does not answer to the www alias? If somebody has futzed around with IIS that is very likely...

ErnestM

Plotloss

67,280 posts

294 months

Thursday 4th March 2004
quotequote all
GregE240 said:
Yes Matt it is.


YHMM

GregE240

Original Poster:

10,857 posts

291 months

Thursday 4th March 2004
quotequote all
Thanks all.

I think (between speaking to Matt) that the DNS A record for the site has been screwed up, so he needs to get on to the hosting company and get it sorted.

Fingers crossed!

Thanks again

Greg

robertuk

591 posts

286 months

Thursday 4th March 2004
quotequote all
If the server is UNIX using Apache...

In the config file httpd.conf

There is a ServerAlias directive

Syntax ServerAlias hostname [ ...alternatives ]

example using pistonheads domain :

ServerAlias www.pistonheads.com pistonheads.com

so both with the www and without work !

Once changes are made reboot your server and it should work.


>> Edited by robertuk on Thursday 4th March 16:00

>> Edited by robertuk on Thursday 4th March 16:01

GregE240

Original Poster:

10,857 posts

291 months

Thursday 4th March 2004
quotequote all
Rob, its IIS I think, but thanks mate.

Think we've got to the root cause of the problem now...

TheHobbit

1,189 posts

275 months

Thursday 4th March 2004
quotequote all
robertuk said:
Once changes are made reboot your server and it should work.


...or, erm, 'apachectl graceful'

JamieBeeston

9,294 posts

289 months

Thursday 4th March 2004
quotequote all
GregE240 said:
Rob, its IIS I think, but thanks mate.

Think we've got to the root cause of the problem now...


if you need any more info, feel free to drop the domain to me via email in profile for authorative check and answer.