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 |
Are you absolutely sure the ip address is correct? what about http://localhost
|
yes http://localhost works and displays my apache test page.
|
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.
|
What is the IP address of your PC?
What distribution are you running? Are you using a static IP or DHCP on the PC? |
the IP address of the web server is 10.0.0.2, i am running on redhat9, and all PC have a static IP.
|
do you have port 80 forwarded FROM your router TO the machine running your webpage?
Just a though... |
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. |
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. |
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.
|
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) |
Are you trying to connect to your hostname at dyndns.org from a machine inside your LAN behind the same router?
|
yes i 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. |
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. |