LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't browse my webserver from internal network (https://www.linuxquestions.org/questions/linux-networking-3/cant-browse-my-webserver-from-internal-network-223010/)

enzolabrador 08-27-2004 06:50 AM

can't browse my webserver from internal network
 
HI,

I have setup an apache webser in linux mandrake 10.0, the problem is that I can't browse that webserver using the domain name registered for it from internal network, but connecting to it from the outside is working fine.

what should i do to solve this?

masand 08-27-2004 10:23 AM

hi
can u browse that web server with the private ipaddress (LAN ip address)
also i assume ur internal computer is connected to the internet...

post ur setup ..

regards

enzolabrador 08-30-2004 12:15 AM

HERE'S MY SETUP:

INTERNET
|
|ETH0(245.X.X.X)
FIREWALL/ROUTER
|ETH1(192.168.1.1)
|
SWITCH-----------------WEBSERVER(192.168.1.5)
|
|
WORKSTATION(192.168.1.10)


WHEN I BROWSE USING ITS LAN IP(192.168.1.5) FROM WORKSTATION(192.168.1.10) IT WORKS FINE, BUT WHEN I USE ITS REGISTERED DOMAIN (NUKDOMAINTEST.DNS2GO.COM) THE ERROR WAS "Unable to Locate Host".

ppuru 08-30-2004 02:14 AM

enzo, pls check whether your apache.conf Listen keyword is set to listen on your external address. BUT before that, are you able to use the Internet . e.g. go to www.yahoo.com or www.google.com. Did you try accessing your webserver using the external ip address instead of the domain name?

When I tried connecting to your webservr, I got a "connection refused".

Also, pls confirm yuor firewall is forwarding port 80 requests (DNAT) to your webserver.

enzolabrador 08-30-2004 03:02 AM

ok! i enabled now port forwarding. Theres no problem browsing www.yahoo.com or www.google.com. I've test this before with my friends accessing from outside and told me they've seen the test page. My main concern here is to let my local network access the webserver using its domain name by the local ip of the webserver.

ppuru 08-30-2004 05:30 AM

Ok, so when your internal clients type your.domain, it should actually map to the internal IP of your web server and not your external IP.

You can setup a DNSserver with views - internal and external. check the nominum documentation (6.2.19) on how to setup such a name server.

If you have just one client, you can add the webserver.your.domain in the hosts file.

enzolabrador 08-30-2004 06:31 AM

Ok bro., i'll try your suggestion.

Just a few question. Is it possible that i can browse my web server from internal without mapping it directly to its internal ip?can u give me a nice tutorial site that have diagram on how paket travel the network 'til it reaches the domain name that i want to view.

tnx!!!

ppuru 08-30-2004 07:00 AM

One question ... can you resolve nukdomaintest.dns2go.com to the external IP address from your internal client? I feel you should be able to as you are able to resolve yahoo, google...

NetAX 08-30-2004 01:27 PM

You need to use the NameVirtualHosts directive in your httpd.conf file. Search apache.org for NameVirtualHosts. You also need to add an entry to your DNS configuration with an accessible IP address for internal clients. This will allow your internal website name to resolve to your webserver.


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