LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2005, 11:34 AM   #1
IndiaStarker
LQ Newbie
 
Registered: Oct 2005
Location: Paris
Distribution: Fedora 3
Posts: 4

Rep: Reputation: 0
(resolved] Win2K doesn't find apache server on linux box


I have to do something to the urls to post this. I replaced h t t p : / / with X
Hi,
I am an absolute newbie. My 1st goal is that my win2K box can access the public pages on my linux box via a browser like this :
X<ip address>
which appears to be 192.168.1.4 according to ifconfig.
I installed apache server on my linux box running fedora core 3.

But from IE browser on windows box,
X192.168.1.4
returns page not found.

Since I am a beginner I am probably missing some very basic thing. Don't hesitate to mention a very basic thing.

ifconfig on the linux box yields :
[india@Freya ~]$ ifconfig
eth0 Lien encap:Ethernet HWaddr 00:118:548:58
inet adr:192.168.1.4 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::211:d8ff:fe54:d858/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22936 errors:0 dropped:0 overruns:0 frame:0
TX packets:23499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:14593663 (13.9 MiB) TX bytes:4406642 (4.2 MiB)
Interruption:5 M�moire:ec000000-0

lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:H�te
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7258 errors:0 dropped:0 overruns:0 frame:0
TX packets:7258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:7215483 (6.8 MiB) TX bytes:7215483 (6.8 MiB)

From the Win2K machine, ping 192.168.1.4 looks good.
In my Mozilla browser on the linux box, Freya, Xlocalhost AND X192.168.1.4 show my index page just fine.

But from IE browser on networked windows box, X192.1.168.4 returns page not found.
Here is a piece of httpd.conf

Code:
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
# Changed from dynamically allocated ip address (which hasn't changed yet, but...)
# to localhost 10/09/2005 -India
#try address seen from outside
#ServerName 83.158.15.158:80 
# Changed to internal ip address (was localhost:80, which works) 05 oct 2005 -india 
# in an attempts that the windows box could see the apache server via ip address:80 No dice.
# ServerName localhost:80
ServerName 192.168.1.4:80
I have a comtrend modem CT-633, furnished by my internet provider, Alice in France. I believe it assigns the internal ip addresses. Do I have to do something with NAT ? I don't know what that is. I do not want the outside world to get to my apache server, just my windows box. I do not have a firewall (that I know about).

Where do I start ?

Thanks a zillion,
India

Last edited by IndiaStarker; 10-11-2005 at 06:53 PM.
 
Old 10-11-2005, 11:57 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
The firewall may be blocking it... post the output of "iptables -L"
 
Old 10-11-2005, 12:04 PM   #3
IndiaStarker
LQ Newbie
 
Registered: Oct 2005
Location: Paris
Distribution: Fedora 3
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your quick response.
Code:
[root@Freya india]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     ipv6-crypt--  anywhere             anywhere
ACCEPT     ipv6-auth--  anywhere             anywhere
ACCEPT     udp  --  anywhere             224.0.0.251         udp dpt:5353
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ipp
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
[root@Freya india]#
As you may guess, I don't know what I'm looking at.
 
Old 10-11-2005, 12:13 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Look here for how to configure in fedora:
http://www.reallylinux.com/docs/basicfirewall.shtml
 
Old 10-11-2005, 01:17 PM   #5
eflester
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 80

Rep: Reputation: 17
Since you said not to fear stating the obvious: are you sure Apache is running on the server? You can check from the command line:
#service httpd status

Another thing I've run across, take a look at file permissions on the document (probably index.html) you put in DocumentRoot (often /var/www/html). The Apache server often runs as user apache, group apache. Make sure it has permission to read the document.

Last but not by any means least, FC 3 has SELinux capability. I am not knowledgeable about SELinux and will defer to others to fully explain it, but it has given me fits running a web server on FC3. My probably bad solution to this was to figure out how to turn it OFF.

I hope this is helpful.
 
Old 10-11-2005, 03:33 PM   #6
IndiaStarker
LQ Newbie
 
Registered: Oct 2005
Location: Paris
Distribution: Fedora 3
Posts: 4

Original Poster
Rep: Reputation: 0
[Resolved] Win2K doesn't find apache server on linux box

Big thanks to all who helped out. What a wonderful community.
The solution I needed was in the basicfirewall tutorial pointed to by aaa who fortunately remarked that
I was on Fedora and there was a specific step to take for Fedora.

Running
#> system-config-securitylevel
There was nothing checked at all.
I checked WWW, SSH and eth0, rebooted the Fedora box

and lo and behold, windows sees apache. THANKS aaa


Thanks a zillion,
India

P.S. Now I just have to figure out why my images aren't accessible (littles X's).
Maybe some permission thing as hinted at eflester.
 
Old 10-11-2005, 06:29 PM   #7
IndiaStarker
LQ Newbie
 
Registered: Oct 2005
Location: Paris
Distribution: Fedora 3
Posts: 4

Original Poster
Rep: Reputation: 0
P.S.S. Obviously the images aren't visible because I have to use something more intelligent than localhost in configuration files (application : oscommerce). Virtual host looks promising.
 
Old 10-11-2005, 07:03 PM   #8
eflester
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 80

Rep: Reputation: 17
The Virtual Host option is very powerful. You can make your server look like many servers, with individual names, all on the same IP address. It's very simple to configure. Let me (or others here) know if you need help with it.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
please help - using linux box as server for win2k ruwach Linux - Networking 9 08-29-2004 04:59 PM
Win2k AD server because of very tight secuirty i can't make my linux box join domain keshif Linux - Networking 7 02-05-2004 03:04 AM
Installing Win98, Win2K and Linux in 1 BOX ako Linux - Newbie 1 01-16-2004 10:06 PM
How to Q: Win2k box to see Linux Box NPSHr Linux - Networking 3 09-17-2003 11:53 PM
connecting a linux box to a win2k network theabyyss Linux - Networking 3 05-03-2002 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:20 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