LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
LinkBack Search this Thread
Old 09-13-2012, 02:46 AM   #1
newpreludeking
LQ Newbie
 
Registered: Oct 2009
Location: near the eastern coastline of the Northsea about 70 miles of GMT line
Distribution: Ubuntu (..), CentOS currently
Posts: 5

Rep: Reputation: 0
Question hostname not bringing the Apache test page in CentOS 6.2


Good Morning

OS - CentOs 6.2

[root@centos etc]# dnsdomainname
testcentos.com
[root@centos etc]# uname -n
centos.testcentos.com
[root@centos etc]# cat hosts
127.0.0.1 centos.testcentos.com centos localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.8 centos.testcentos.com centos
[root@centos etc]# service httpd status
httpd (pid 2486) is running...
[root@centos etc]#
[root@centos etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:118:BA:525
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:feba:52d5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7691 errors:0 dropped:0 overruns:0 frame:0
TX packets:7899 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6281268 (5.9 MiB) TX bytes:1238084 (1.1 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:62 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17765 (17.3 KiB) TX bytes:17765 (17.3 KiB)

[root@centos etc]#


If I put 192.168.1.8,127.0.0.1 or localhost in the browser, I am getting the Apache test page. If I put the dns name (testcentos.com) I am getting server not found.

Here is the directives I have put for Listen and ServerName in httpd.conf

Listen centos.testcentos.com:80
ServerName centos.testcentos.com

I am not sure what I am missing. Any help would be appreciated. thanks in advance

cheers
 
Old 09-13-2012, 03:02 AM   #2
newpreludeking
LQ Newbie
 
Registered: Oct 2009
Location: near the eastern coastline of the Northsea about 70 miles of GMT line
Distribution: Ubuntu (..), CentOS currently
Posts: 5

Original Poster
Rep: Reputation: 0
Just found that

centos.testcentos.com

in the browser is bringing the Apache homepage. But If I put only testcentos.com, it is adding www. and it is saying server not found?
 
  


Reply

Tags
apache, configuration, hostname


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Apache 2 Test Page back - CentOS 5 satimis Linux - Distributions 5 01-15-2008 04:46 AM
Apache test page carlos22 Linux - Newbie 10 01-14-2007 11:53 AM
CentOS apache test page geosko Linux - Server 21 10-14-2006 12:52 PM
Can't see Apache test page frankd99 Linux - Networking 7 07-27-2006 07:06 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM


All times are GMT -5. The time now is 04:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration