LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-27-2004, 06:50 AM   #1
enzolabrador
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
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?
 
Old 08-27-2004, 10:23 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Question

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
 
Old 08-30-2004, 12:15 AM   #3
enzolabrador
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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".
 
Old 08-30-2004, 02:14 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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.

Last edited by ppuru; 08-30-2004 at 02:29 AM.
 
Old 08-30-2004, 03:02 AM   #5
enzolabrador
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 08-30-2004, 05:30 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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.

Last edited by ppuru; 08-30-2004 at 05:31 AM.
 
Old 08-30-2004, 06:31 AM   #7
enzolabrador
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
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!!!
 
Old 08-30-2004, 07:00 AM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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...
 
Old 08-30-2004, 01:27 PM   #9
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto access webserver from internal network? Falafel Linux - Networking 6 11-01-2005 03:18 PM
how to browse your home webserver securely from work disorderly Linux - Networking 2 10-23-2005 09:51 PM
Cannot access Apache webserver from internal network, but I can from outside... cj_thomas Linux - Networking 8 10-18-2004 02:18 AM
Seeing webserver from internal network NetAX Linux - Networking 2 07-09-2004 11:03 AM
can not browse tomcat webserver on linux from windows Ibrahim Linux - Networking 0 03-24-2004 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration