LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2007, 09:49 AM   #1
sajith
Member
 
Registered: Sep 2005
Location: kannur
Posts: 59

Rep: Reputation: 15
apache web server


sir,

i have installed apache web server on fedoa core 5.

when i type http://localost in browser it will display the apache test page. same will get when typing htpp://127.0.0.1 also.

But when i type http://192.168.1.222 (my ip address ) it will not display the test page .

it will give following error.

connection failed

113

no route to host.


anybody can help me solve this problem.

The same problem will occur when i tried with ubuntu 6.10 also

please help me to fix this problem.
 
Old 04-29-2007, 10:02 AM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
That's probably because it has been installed as a virtual host with it's ip linked to localhost / 127.0.0.1 (both are the same just typed in another way).

To test if it works, you should make a virtual host for your network ip.
 
Old 04-29-2007, 10:07 AM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Do you have an entry for your host in /etc/hosts of the form
Code:
192.168.1.222     name.domain name
Where name is your system's name (in /etc/HOSTNAME, probably) and domain is the domain name you applied; e.g., .com, .net, .org, etc.

Also, do you have, in intet1.conf (wherever it is in your startup files) setting
Code:
# Config information for eth0:
IPADDR[0]="192.168.1.222"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
...
# Default gateway IP address:
GATEWAY="192.168.1.1"
The above may vary depending on how you're configured (fixed IP versus DHCP, say), but generally those entries have to exist for Apache to know what it needs.

Also, you need an entry in httpd.conf (in Apache's conf directory) similar to
Code:
#ServerName www.example.com:80
ServerName name.doman:80
 
Old 05-01-2007, 09:35 AM   #4
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 20.04
Posts: 87

Rep: Reputation: 15
Check httpd.conf to see that your apache is listening on all your purpose ip address or listening on all the ip of the system.
Such as below.
Quote:
Listen 0.0.0.0:80 #This is for all ip
or
Listen 192.168.1.222:80 #For one ip, which you can add another ip to meet you need
Or first you can just check what ips and ports are listening now by issue the command 'netstat -na|grep tcp'.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Web Server ricardof Linux - Networking 2 03-23-2005 11:49 AM
Apache Web Server Dapernia Linux - Networking 8 01-27-2005 03:57 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
apache web server citrus Linux - Newbie 6 03-24-2004 05:58 AM
web server apache sameermanagoli Linux - Software 15 07-07-2003 06:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration