Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
I have been trying for weeks now to setup apache server to host a couple of websites.
The domains were registered domains.
I got dns service from zoneedit.com and been assigned a pair of nameservers.
My network is two pc both connected to a 4-port DSL gateway router . first pc has installed apache
web server and the second pc win2k. The router is then connected to a broadband DSL modem
supplied by ISP.
I use dynamic IP address.
I have come to the point that at the first pc where apache was installed I could see the testpage when I enter url: localhost at browser, and when I enter the url of the registered domains e.g.http://www.xxxx.com.hk I can see the index.html page in the /var/www/xxxx/public_html/index.html directory.
But when I try to view the website http://www.xxxx.com.hk from the second pc with win2k I only see
a dialogue box for entering user name and password for web-manager and then a 401 error message.
I have read several similar thread in the forum but still could not apache working properly.
I a kind of suspecting I am not setlting the router or network config correctly.
Hello LinuxFan,
I'm quite familliar with apache... I'm running a domain and various virtual domains with same king of set up.. I doubt this is apache related problem... Seems more like Internal network problem... I guess that if you http://xxx.xxx.xxx.xxx/ on your Win2k machine you will have the test web page (well replacing all the xxx by ip adress :-)
Try that and if it is correct, we will follow with some more things to do to get you problem solved:-)
If that does not work there is some network problems.
By the way, both machines should be DHCP and receive theire adress from the router...
Quote:
tried http://www.xxxx.com.hk from win2K machine and get dialogue box asking me
to enter user name and password for 'web manager' for www.xxxx.com.hk
I entered the password for the router and this directed me to main.htm page for the router set up.
This is bad. Since I dont know you backgroud I should tell that you might have mix the IPs ??
Here's what I would recommand:
Post the ip list (internal only) so there is no way to communicate with them and... Like this it will be easyer to share ideas...
By example, my current ip is 192.168.0.213 but my public ip (external of the router is 66.xxx.xxx.xxx :-)
Quote:
further ideas?
Thanks.
Sure planty :-) But first, never give up!!
smallfish
linuxfans [/B][/QUOTE]
Last edited by LuggerHouse; 05-13-2004 at 10:17 AM.
Followed your advise and tried http://192.168.1.2 on win2k machine and YES, I see the
Test Page.
If I am correct http://192.168.1.1 is the default IP for my DSL router.
From the router's dhcp table, linux box has ip internal 192.168.1.2 and win2k machine has ip 192.168.1.3
My public dynamic ip is supplied by ISP and it changes very often. So, whenever my public ip
changed, I update the ip for http://www.xxxx.com.hk at zoneedit.com
I have been with linux since redhat 7.0 and althought I read quite a number of books on linux I am still making very slow progress in the learning process.
signing off here for now, HK time 12:06 am, will be back on line again around same time tommorow
evening.
Ahhhhhhhhhhh Good to know, so you have about the same experience with Lnx as me.... I met the pinguin with Redhat 6.2 few years ago...
OK, here's some questions (again) for 2 morrow...
How do you do DNS resolution in you network.. If your like me, I dont do it, my ISP give it to me and I put it in my DHCP register and give it to my client's machine ... (I use a LinuxBox as the router, with 2 nics)
In your case, does the router give the DNS to your clients ??
Can you see it in your client's machine (i.e cat /etc/resolve for lnx and ipconfig /all for win2k)
For more efficiency and speed when you change zonedit register (BTW I like them very much!) you could change your dns setting to point to them...
Some exercices:
On the win2k :
tracert http://yourdomaine
or nslookup machine.yourdomain (should give your public ip)
You never know, maybe tomorry everything will work again... Cause DNS refreshing could take a little time since it might be cached by your ISP... Normaly cache time out is about 15-30 minutes I thing...
Tried ipconfig on win2k
c:\>ipconfig
ethernet adapter:
connection-specific dns sufffix:
ip address 192.168.1.3
subnet mass 255.255.255.0
default gateway 192.168.1.1
Tried nslookup www.xxxx.com.hk on win2k
c:\> nslookup www.xxxx.com.hk
can't find server name for address 192.168.1.1 : None-existent domain
default servers are not available
server: unknown
address: 192.168.1.1
None-authoritative answer:
name: www.xxxx.com.hk
address: 219.77.xxx.xxx
Quote:
How do you do DNS resolution in you network.. If your like me, I dont do it, my ISP give it to me and I put it in my DHCP register and give it to my client's machine ... (I use a LinuxBox as the router, with 2 nics)
As for DNS I entered the ip of nameservers assigned to me by zoneedit.com into the record of domain registrar in H. K.
Quote:
In your case, does the router give the DNS to your clients ??
I think the router is giving DNS to my pcs as I can see in the following router status page:
The nameserver ip assigned to my domain from zoneedit.com is differnece from the above DNS 205.252.xxxx.xxxx . . . . .
The nameserver IP by zoneedit.com was
69.10.xxx.xxx and 65.125.xxx.xx ( and this was the nameserver ip I enetered into the record of H.K. domain registrar)
I have enabled DDNS on the router, However, I could not find zoneedit.com in their list of supported DDNS Servers. There are MyDYnDNS,No-IP,
and DtDNS being supported. So, I just selected MyDYDNS in lieu of
zoneedit.
My only other solution would be to ssh to you machine to help you out..
If you decide that's what you want, change you root paswd to something simple, arrange you router to point port 22 to you lnx machine and send me the ip adress and root password to:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.