Click to See Complete Forum and Search --> : localbox can see my webpage, but LAN cannot--just times out!!


bruce1271
06-07-2001, 12:39 AM
Hi,

I got my page up and running and I am able to view it on my linux box netscape browser. But when I go to my PC on my LAN, the connection just times out. Am I missing something??


--sooo close

freebsd
06-07-2001, 02:35 AM
Don't set ServerName to localhost, use the hostname for your 192.168.0.x.

bruce1271
06-07-2001, 07:24 AM
Ok, I have just been informed that no-one from the outside world can see it either. So Only myslef running on linux can see the page. Not too good.

Falcon
06-07-2001, 10:49 AM
Do you have a static I.P.? If so, set ServerName to your I.P. You can also set it to whatever your I.P. resovolves to if that dosn't change. If it is dynamic and your hostname (what it resolves to) changes then you have to modify the config file everytime you reboot (pain).

Falcon

Energon
06-07-2001, 11:24 AM
That was pretty backwards... generally the IP changes (what the hostname resolves to) and the hostname stays the same... it would be pretty stupid to continually change the hostname since they cost money and the purpose of them is to give people something easy to remember rather than lenghty IP addresses...

bruce1271
06-07-2001, 06:45 PM
I have a dynamic IP, but I installed a script to update it automatically. I checked and it is ok. From the outside it says something like no permission to read, but form the inside it says server not found. Does soemone have a commonhttpd.conf file i can see that works?? Thanks.

webbcite
06-08-2001, 01:50 PM
Check your permissions on your web root. Usually when you get a message like that, permissions are messed up.

Also, I assume you have DNS records setup and pointing to your domain?

Falcon
06-08-2001, 06:35 PM
you get a 403 error? or does it say no read access? Apache directory configuration should allow you to turn read access on. Set it up so it allows all for read access in your www root dir. If it says 403 then you need to set the dirs permissions to 755 (I think). Just type chmod 755 dirname to do that.

Hope this helps,
Falcon

Falcon
06-08-2001, 06:41 PM
you get a 403 error? or does it say no read access? Apache directory configuration should allow you to turn read access on. Set it up so it allows all for read access in your www root dir. If it says 403 then you need to set the dirs permissions to 755 (I think). Just type chmod 755 dirname to do that.

Hope this helps,
Falcon

Sweede
06-08-2001, 06:54 PM
do you have a firewall setup? do you have it blocking port 80??
http://localhost/ wont be stopped by port 80, which is why you get timeouts via everywhere but localhost.

bruce1271
06-08-2001, 07:33 PM
Hi Guys,

Thanks for all your help. I reloaded my firewall AND changed the permissions. I opened up port 80 and other things. now it works. Whew...
Now, I have a few smaller problems. How to get a ~username webpage to show. What happens is when I do mypage.dyndns.org/~johndoe the web page comes up as error 404. myhost.mylinux.com not found. This name is the name of my linux box. Netscape is translating mypage.dyndns.org into myhost.mylinux.com !!
Obviously this is a fake name. but its looking on the WWW to find this server. How do I stop this translation?? When I view it on linux-netscape. It is not a problem. The page shows. Just when an external PC tries to view it there is a problem.

1 More problem. How do I get www.mypage.dyndns.org (http://www.mypage.dyndns.org) to be recognized as well as mypage.dyndns.org?? Only mypage.dyndns.org works! Any ideas?? Thanks for all your help!!

Bruce

Falcon
06-09-2001, 03:20 AM
How to get a ~username webpage to show.

If you used the default conf file then go to the users home directory and create a dir called "public_html". Set its permissions to 755 and the home/username dir permissons to 711. All files in the /home/username dir should be on domain.com/~username

What happens is when I do mypage.dyndns.org/~johndoe the web page comes up as error 404.

I'm not exactly sure on this one. 404 means it connects okay, as your other domain does work. It is saying its looking for a file thats not there.

How do I get www.mypage.dyndns.org (http://www.mypage.dyndns.org) to be recognized as well as mypage.dyndns.org??

For that you have to donate at least $10 to dyndns.org. That is subdomain control and they don't let you have it without paying.

Falcon

bruce1271
06-09-2001, 07:52 PM
Thanks for your help!!! I can view the ~directires internally but when I use an external pc it tries to look up my linux host name/~username and that is the problem. How do I stop linux form using the host name but instead use the dyndns.org name?? Thnaks again!