LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache and dns (https://www.linuxquestions.org/questions/linux-software-2/apache-and-dns-69525/)

mikew101 07-02-2003 08:05 AM

apache and dns
 
My Dns server points to my web servers ip address.
My only problem is that when trying to view my web site from another computer I can never connect to my website.

I have apache configured and on my web server if I enter my ip address I can see the web site. If i put mydomain.com as the address in mozilla on my webserver then it still shows the web site. I think maybe this is because the files are local. My connection is a DSL line. The apache server is set to listen like this
Listen 1.2.3.4.5:80

Is it the ports fault that no other computer besides the web server can view the site? Any help would be much appreciated.

MRK 07-02-2003 11:45 AM

My first question is if you can view the website from another computer using it's external ipadderss? If you can, then its a dns problem.

You must have 2 external dns servers that point your domain name to your external ipaddress. You must then list both of these dns servers in the nameserver portion of your domain name registration.

If that is setup correctly, the only other thing that i would check is to make sure if your connected through a firewall or router, make sure you have either the server put in a dmz or have some sort of port forwarding.

Also, you might try serving on a differnt port. My PERSONAL cable service blocks port 80. This dissalows me from running a webserver. I can however serve on port 8080 or any port besides 80.

Hope you get up and going!

-Mr.K

mikew101 07-03-2003 08:57 PM

Well I have my DSL Modem connected to hub. My laptop and webserver both share the dsl connection through the hub. I reconfigured the apache server to listen to both port 80 and 8080. If I use my laptop which is connected to the internet through the same hub as the webserver and enter the ip address of the webserver I can not see the website. I get an error page. I don't think that the webserver is behind a firewall. The webserver is running Red Hat 9 and unless a firewall is automatically started then I did not install or turn one on. The hub is a netgear 8 port 10 megabit hub.

mikew101 07-03-2003 08:58 PM

By the way I have 5 dns servers and I know that they are working correctly network solutions the company I purchased the domain from knows the ip address of all the dns servers.

MRK 07-03-2003 11:32 PM

Your first problem is that you are using a hub. Do you get more than one external ip address from your dsl provider? Most people only get one external ip address. They then stick some sort of a router (i perfer hardware routers) between the modem and the copmuters. The router takes the external ipaddress and gives your two internal computers internal ip addresses.

If you are like most people, you only get one ip address. This means that either your laptop or your webserver has an ip address. Therefor, only one at a time can get on the internet. I would guess that your laptop has this external ipaddress and your webserver doesnt have one. This is why you cant access it.

If you do get more than one ip address from your dsl provider, i would suspect either your network settings are messed up on the linux server or there is some sort of firewall blocking those ports. Check to see if iptables or ipchains are running. I dont use redhat, so i dont know what they install by default.

Also, just because your domain name has 5 nameservers doesnt mean that the dns settings are correct. You might check the dns servers and make sure they are properly configured to point yourdomain.com to your ip address.

Let me know.

-Mr.K

pkoebbe 07-04-2003 10:53 AM

One other possibility you might want to check is that the router is set to port-forward UDP as well as TCP for DNS requests. I had just set up my DNS server a couple of weeks ago, and it was working beautifully in my private LAN, but then I tried it from work and it didn't work. I had to enable UDP packets for the port-forwarding on my router.

Peace,
Phillip

mikew101 07-05-2003 12:54 AM

Thank you all for your help. First I went to see if my dsl provider Verizon offered more then one external ip address. They did. So I knew it was not that. Then I checked if red hat 9 automatically has a firewall installed. It does. So I changed the settings of the firewall and the webserver is working perfectly. Thank you for you help My web server is now working great.


All times are GMT -5. The time now is 05:43 PM.