cannot access server over internet after successful installation of apache2
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cannot access server over internet after successful installation of apache2
I am newb to the home server, so please bear with me.
I am running Fedora 8 and installed apache2 manually. I know it installed correctly and is running, because I see the "It Works!" html page on my server's own browser when at the url "localhost". I am also pointed towards the "It Works!" page if I enter my server's IP address from another computer on my network, so it works on my LAN, too.
I have also configured my router to forward port 80 to my server. I should note that my router has assigned a static IP address based on my server's MAC address to my server.
Furthermore, I have also checked to see whether or not my ISP has port 80 opened by a test done at .canyouseeme.org
I have checked my server's firewall and confirmed that port 80 is not being blocked there either.
I have checked the access.log and error.log, but there isn't an obvious answer there. The error log is empty and the access log documents the times I connected through my network.
Whenever I enter my server's IP as a url, my browser times out.
In summary, apache2 is working on my LAN, but not on the internet.
ahh, i thought you said you *could* reach it by ip. my mistake.
on the server, run "tcpdump -n port 80" and then try again from the remote location. if you see anything coming in from the connection attempt then there's somethign on the linux side, if you see nothing then it's on your router.
Thank you for your advice. I have done as your said and ran "tcpdump -n port 80". While running I attempted to connect to the server through my browser and I did get some information on my terminal.
Periodically a couple of lines of numbers the contained the IP address of my ISP and the IP address my router assigned my computer appeared. I got results like this when I tried to access my server from my server's browser and another computer's browser.
I believe I understand why I can access my server's homepage from my LAN too. When I ran the tcpdump and then connected through my LAN I instantly pulled up my server's homepage, but nothing appeared on the terminal. Does that mean computers on the same network don't need to use port 80?
You mentioned that this would mean the problem is on the Linux side. I agree. I don't know where to go from here. Do you have any more advice? Would it help if I sent the text from my terminal after I run tcpdump?
well can you show us the info? quite possible you have a software firewall on the linux box maybe. and port 80 will *always* be used, nothign special about a lan connection as far as the server is concerned.
I have an update. I believe the problem is actually with the router and port forwarding. It turns out that whenever look my IP address up in a browser using the internet from some outside location apache is working. Therefore, there really isn't a problem anymore.
However, I am curious as to what is really going on.
To recap. I can apache works from my server at localhost, at any other computer on my network using the IP designated by my router, and any computer outside of my network with an internet connection.
I cannot however use the IP my ISP gave me from within my network to connect to my server. I'm not sure why, but this definitely makes me think it is a router issue. If you can explain this I'd love to know what is going on.
right, you can't use your public IP from inside your network as it's the IP of the router, not your server. ip forwards only work on the outside, not the inside, as normally if you were to have it working inside, then you'd not be able to reach the web interface on the adsl router etc..
I just joined this forum cause the last post p!55ed me off.
Why do people come on to these things and talk rubbish about things they know nothing about?
Of course a router can port forward from an inside host. I run several large websites, and I can access each and every one of them from inside my network using my domain name (which resolves to my outside IP address). I can also access using IP address but using Name Based Virtual Hosting, I would only see the default site this way.
You were definitely right Kyle. This will be an issue with your router settings. I you still have the problem, let us know what router you are using.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.