Cannot see homepage?

Support for webhosts that use CentOS
Post Reply
MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Cannot see homepage?

Post by MajorNewbie » 2008/04/30 18:15:05

I like to test my apache setup: typing "http://localhost/" in the URL should bring up my index.htm homepage.

But it doesn't, it gives me an "unable to connect" error.

Addendum:
I can ping localhost
I cannot telnet localhost, tells me connection refused, and I am doing this on the web-app server itself.
I can ping my fixed IP address and my domain-name www.aaa.com

I just cannot get my homepage up on the internet: server not found!

Documentroot in Apache is pointing to correct directory ie /var/www/html.

User avatar
AlanBartlett
Forum Moderator
Posts: 9324
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Cannot see homepage?

Post by AlanBartlett » 2008/04/30 18:23:05

I can get the AAA page at www.aaa.com :-D

Alan.

MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Re: Cannot see homepage?

Post by MajorNewbie » 2008/04/30 21:09:18

VERY FUNNY :D

Nothing like a sense of humour in times like this :D

User avatar
WhatsHisName
Posts: 1546
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

Cannot see homepage?

Post by WhatsHisName » 2008/04/30 22:10:56

Try http://localhost/index.htm

Apache is not configured to serve .htm by default.

[code]# grep DirectoryIndex /etc/httpd/conf/httpd.conf

DirectoryIndex index.html index.html.var[/code]
See what happens when you use M$ frontpage? :-D

MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Re: Cannot see homepage?

Post by MajorNewbie » 2008/05/01 00:34:43

As said, http://localhost/ works fine, serves up index.htm or .html

At the moment I am trying to determine whether it is a NAT-ting problem.

It is an external fixed IP address and my internal address has to NAT to that, either in /etc/hosts or some setting in httpd.

MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Re: Cannot see homepage?

Post by MajorNewbie » 2008/05/01 01:12:02

AHA!

It is a NAT-ting problem. Now the world can see me.

Problem is, when I am the other side of the router (the 192.169.mm.nn barrier), I cannot see myself when I type in "www..com" whereas I can see myself if I type in my internal 192.168.mm.nn.

I knew it... where's Jim Beam?

Post Reply

Return to “CentOS 5 - Webhosting Support”