LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't access webserver IN network (slackware/apache) (https://www.linuxquestions.org/questions/linux-networking-3/cant-access-webserver-in-network-slackware-apache-170164/)

hcubed 04-14-2004 03:42 PM

Can't access webserver IN network (slackware/apache)
 
You guys did great on the first question, but now I've got another.

I have a webserver at dumbbox.dyndns.org and it works fine from anywhere outside my two computer network (one windows pc, one slackware webserver). Actually it works fine on all computers except the PC. If I type in the above address on the webserver, it works fine, but on the windows box it won't connect. I have to type in the internal IP of the webserver to access it. Although it's not a big deal, it would be nice for testing purposes to have it work. Oh yeah, The dyndns actually points to the IP of the router.

I also have an SMB server running on the webserver so I can access some pictures from the Windows box through the webserver (and display them on the webpage). All other comps have no problem seeing these pictures, except the Windows box can't disaplay them.

Any ideas? Thanks in advance.

david_ross 04-14-2004 03:51 PM

You will need to override the DNS entry in each of your LAN PCs with a hosts entry like:
192.168.1.10 dumbbox.dyndns.org

Assuming 192.168.1.10 is your server's LAN ip.

hcubed 04-14-2004 03:57 PM

Ok, that makes sense, but I'm not sure how I go about doing that. Would I alter the httpd.conf file? Thanks.

david_ross 04-14-2004 04:05 PM

You just need to add an entry to your hosts file as I described above.

hcubed 04-14-2004 04:12 PM

I get it now. Thanks so much, it works!

ugge 04-14-2004 04:20 PM

You would add the line above in the /etc/hosts file.

My guess why this is a problem would be that your linux router blocks requests to the WAN interface (internet IP) for clients coming from your LAN.
I can access my linux router with both internal and external IP address as well as global DNS address.
This problem is probably in the iptables rules.

Am I right, any one?


All times are GMT -5. The time now is 06:52 AM.