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 |
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? |
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 |
So internally are you pointing to port 80 or 800?
|
800
|
So is apache listening on port 800 as well as 80?
netstat -nlp |
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 |
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 |
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. |