LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   web-interface router and apache prob. (https://www.linuxquestions.org/questions/linux-newbie-8/web-interface-router-and-apache-prob-218219/)

mindfestival 08-16-2004 07:10 AM

web-interface router and apache prob.
 
Hello again. I have also just got apache up and running and am again asking a very newbie question, so bear with me if you could hehe.. ok. I have an adsl modem/hub/router, which is set up via http, my problem lies when i connect with my browser to my current ip address, i get the web interface authentication screen instead of my site.

Thankyou for tuning in

mindfestival

Demonbane 08-16-2004 07:13 AM

Are you absolutely sure the ip address is correct? what about http://localhost

mindfestival 08-16-2004 07:43 AM

yes http://localhost works and displays my apache test page.

mindfestival 08-16-2004 07:47 AM

My apologies for the double post... could this possibly be a router issue? Or should i scrap my hardware router and do it all through IPTables, if i make any sense.

michaelk 08-16-2004 07:52 AM

What is the IP address of your PC?
What distribution are you running?
Are you using a static IP or DHCP on the PC?

mindfestival 08-16-2004 08:02 AM

the IP address of the web server is 10.0.0.2, i am running on redhat9, and all PC have a static IP.

jeffreybluml 08-16-2004 11:04 AM

do you have port 80 forwarded FROM your router TO the machine running your webpage?

Just a though...

mindfestival 08-17-2004 12:03 AM

Apologies for the late reply, yes i am using an alcatel speed touch pro, and have configured the routing as such.

Indx Prot Inside-addr:port Outside-addr:port Foreign addr:port
97 6 10.0.0.2:21 0.0.0.0:21 0.0.0.0:0 template
98 6 10.0.0.2:80 0.0.0.0:80 0.0.0.0:0 template

Yeah, i read up on my port fowarding, and this seems correct, i havent configured apache in any way yet, infact, when i start it up i get "could not get servers qualified domain name, using 127.0.0.1 for ServerName". When i scan my router i get this:\

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on SpeedTouch.lan (x.x.x.x):
(The 1597 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp filtered ftp
23/tcp open telnet
80/tcp filtered http
1723/tcp open pptp

Nmap run completed -- 1 IP address (1 host up) scanned in 9 seconds.
This has let me to confirm that my router is doing what i tell it to do, and that the problem may be with my linux config.

Demonbane 08-17-2004 12:10 AM

If you're connecting to the webserver inside the LAN(or from the webserver itself) then it shouldn't have anything to do with the router.
type /sbin/ifconfig and check the ip address.

mindfestival 08-17-2004 12:16 AM

ok my bad for not explaining fully... i can connect from inside the LAN http://10.0.0.2, from any computer no problem. It is just that i got myself an account from dyndns.org, and it is only when i try to connect to my hostname that.. after about 3 minutes, i get "page not found", the account is pointing to my correct ip address i have assured.

mindfestival 08-17-2004 12:19 AM

heres my ifconfig output:

[root@roomshack /]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:C7:2C:82:5C
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8555 errors:0 dropped:0 overruns:0 frame:0
TX packets:8140 errors:0 dropped:0 overruns:0 carrier:0
collisions:4 txqueuelen:100
RX bytes:909074 (887.7 Kb) TX bytes:666053 (650.4 Kb)
Interrupt:11 Base address:0x1020

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6525 errors:0 dropped:0 overruns:0 frame:0
TX packets:6525 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:261833 (255.6 Kb) TX bytes:261833 (255.6 Kb)

Demonbane 08-17-2004 12:50 AM

Are you trying to connect to your hostname at dyndns.org from a machine inside your LAN behind the same router?

mindfestival 08-17-2004 12:55 AM

yes i am.

Demonbane 08-17-2004 01:03 AM

It won't work that way, the router gets confused when it tries to do NAT.

If you want to test your webserver to see if its accessible from the internet you need to get someone else not on your LAN to test it for you. You can use /etc/hosts file and map it to your local ip if you want to connect to the website using the dyndns domain name in your LAN.

mindfestival 08-17-2004 01:25 AM

Ok i just got a mate to test it, and hes is also getting the page could not be displayed.


All times are GMT -5. The time now is 12:51 AM.