Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello there, maybe this is a thread you get a lot, believe me I have searched the web and apache docs for almost 2 weeks, but I can't get my server to work. What I wan to do is to host a small webpage in my computer, I have apache installed ans it's running fine, when I go to 127.0.0.1 it shows up my webapage with no problems, on my router I have port 80 forwaded to my machine, but if I try to connect as if it was a webpage I get nothing, I mean I fire up any broser and put mi ip and I get nowhere. I have ssh running and it wirks fine, I had an ftp server for a while and it worked fine too. Any ideas on why my webpage does not work?
Thanks in advance
if you forwarded "router":80 to "your sys":80 your apache must listen on "your sys":80 not! at localhost. try getting it by browsing "your pc ip":80. if that doesnot work edit your httpd.conf "listen" parameter.
is a firewall up blocking connections to port 80?
is ssh also forwarded?
I did exaclty as you said, but none. I have a dynamic IP, maybe that's not letting my server work, but I have a redirecting address, where shoud I put that address ? or what file should I edit to use my dynamic IP? thanks in advance again
well, back now. if i got you right:
you have a router with a dyn. IP-Address (what os?). this router forwards connections from the outside (www?) port 80 to your machine1 port 80. right? ssh and other work if your try to access machine1 from behind the router. their ports are forwarded the same way.
you want to get access from behind the router to your apache running at machine1. but that doesn't work. question: can you reach the apache from inside your network, possibly from a machine2? how many ethernet-cards does machine1 have?
Thanks, here it is how it works
Internet -router- mymachine(running SuSE 9.0 and apache installed)
from anywhere I can get to my machine trough ssh with my dynamic IP, I have port 80 forwarded to my machine on the router and I can see apache from the internal network, but not from the outside.
What I want to do is to host a webpage of my own on my machine with apache.
That's the info I can give you, thanks for your help
I agree w/mritch, I think there is some info missing...such as what type of router used, your httpd.conf file.
I think you need to forget about the router, internet access and your dynamic IP for now. Concentrate your efforts on getting a different PC on your LAN to be able to access the webpage via IP address in a web browser. Once you have that working, then work on access from the external Internet. The reason I suggest this strategy, is that if the /etc/hosts file and/or the /etc/httpd/conf/httpd.conf files have incorrect/missing entries, nothing will work LAN or WAN and you will experience exactly what you are currently experiencing.
The fact that you can enter the loopback (127.0.0.1) on the Linux box and view the web page tells me 2 things: Apache/httpd is working, but name resolution is not. Anotherwords, Apache/httpd has no clue what it's own IP and name is. Which is why using the IP of the Linux box, nor the name will bring up the web page.
Once you get this working on your local, internal network (LAN), then start troubleshooting the router, internet access issue. On that one, I would search forums, google, pertaining to your router make/model and serving a web page behind it. More than likely, somone has done it before w/that router.
i think that must be a problem with your router. since everthing except http-traffic seems to be forwarded correctly. i asume you can reach the apache via the address of your eth0 from intern. you should try to do a netcat to port 80 from the outside and look if you get a "connection refused". but> i've heard about routers, like from belkin, linksys and others which have also a http-server installed for configuration. this one listens on port 80 and so forwarding there wouldn't work unless it's switched off.
I did as you said with an internal computer, there are 3 computers connected to the same router, included mine, and rom the other 2 I have no problems with the webpage I enter locally and have no problems, the problem start when I try to get from the outside, I am very sure it must be the httpd.conf and/or /etc/hosts files, here is my /etc/hosts:
#192.168.0.119 my ip
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
Heeeey again I got it working
Have you ever heard about the error between the computer and the chair?
Checking trough my router's configuration I had port 80 assigned to my computer, but I did not enable it.
Thanks a lot for your help again and I apologize for this dummy mistake