LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot access Apache webserver from internal network, but I can from outside... (https://www.linuxquestions.org/questions/linux-networking-3/cannot-access-apache-webserver-from-internal-network-but-i-can-from-outside-243167/)

cj_thomas 10-15-2004 05:31 PM

Cannot access Apache webserver from internal network, but I can from outside...
 
Hi there,

Im very new to Linux so please bear with me...

I installed XAMPP for Linux and have apache running, everything was working great up until a little while ago. I can no longer access the webserver via its internal IP (something i was able to do just a few minutes ago). I can still access it via my external ip address.

Anyone know whats up?

Thanks in advance..
CJ

david_ross 10-16-2004 08:25 AM

Do you have 2 ip addresses on the one NIC or 2 NICs with different IPs?

Can you post the output from:
ifcontig
route -n

What is the internal IP of your client?

cj_thomas 10-16-2004 04:06 PM

neither, this is just in my home envrionment, so i just have it plugged into a switch and it obtains an internal address from our home router. I have setup a port redirection so that it will always forward traffic from port 800 (my isp blocks 80 so i had to change it) to my linux machines internal ip address. Yet for some reason when i point to its address (192.168.0.100) it does not reply, but when i point to my IP in internet explorer it does.

Here is the output of those commands:

Ifconfig:

LinuxBox:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:C6:F0:89:10
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::280:c6ff:fef0:8910/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1974718 errors:0 dropped:0 overruns:0 frame:0
TX packets:1938005 errors:3 dropped:0 overruns:0 carrier:3
collisions:120 txqueuelen:1000
RX bytes:971726653 (926.7 Mb) TX bytes:140527741 (134.0 Mb)
Interrupt:11 Base address:0xb800

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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)

route -n:

LinuxBox:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0



david_ross 10-16-2004 04:36 PM

So internally are you pointing to port 80 or 800?

cj_thomas 10-16-2004 06:00 PM

800

david_ross 10-17-2004 07:27 AM

So is apache listening on port 800 as well as 80?
netstat -nlp

cj_thomas 10-17-2004 03:01 PM

it should just be 800

here is the output from netstat -nlp, for some reason httpd is listed twice

tcp 0 0 :::800 :::* LISTEN 1042/httpd

tcp 0 0 :::443 :::* LISTEN 1042/httpd

mago 10-18-2004 12:36 AM

You are running apache on the 800 port that you configured and the 443 is for SSL.

To be able to see the apache from your explorer without having to add the :800 after it, just edit the httpd.conf and add
Code:

Listen xxx.xxx.xxx.xxx:80
Being xxx.xxx.xxx.xxx the internal ip.

cj_thomas 10-18-2004 01:18 AM

i cannot even access it with :800 at the end of the internal IP


All times are GMT -5. The time now is 03:46 PM.