Koozali.org: home of the SME Server

Accessing ibays from outside LAN?

Dan Brown

Accessing ibays from outside LAN?
« on: October 02, 2000, 06:41:46 PM »
I'm having trouble accessing any ibays from outside my LAN, or even inside the LAN when I try to access by hostname instead of by internal IP.  Suppose I have an ibay called "test."  I can use my web browser to go to 192.168.1.1/test, and the contents appear with no problems.  However, if I go to myhostname/test, I get error 404, page not found.  Public Access via web is set to "entire internet, no password".  I expect there's something in the Apache config that's set incorrectly, but what should I be checking?  I'm running 4.0 final.  Thanks for any input!

Justin

RE: Accessing ibays from outside LAN?
« Reply #1 on: October 02, 2000, 10:50:11 PM »
Are you on a DHCP connection from your ISP?

Paul Nesbit

RE: Accessing ibays from outside LAN?
« Reply #2 on: October 03, 2000, 01:48:11 AM »
Dan Brown wrote:

> I'm having trouble accessing any ibays from outside my LAN, or
> even inside the LAN when I try to access by hostname instead of
> by internal IP.  Suppose I have an ibay called
> "test."  I can use my web browser to go to
> 192.168.1.1/test, and the contents appear with no problems.
> However, if I go to myhostname/test, I get error 404, page not
> found.

On the local network you should be using www.e-smith.yourhostname.xxx/test
or
www/test


From the internet you use:
www.youhostname.xxx/test

I've just tested this on a fresh e-smith 4.0 install and had no problems.


> Public Access via web is set to "entire internet,
> no password".  I expect there's something in the Apache
> config that's set incorrectly, but what should I be checking?
> I'm running 4.0 final.  Thanks for any input!

Dan Brown

RE: Accessing ibays from outside LAN?
« Reply #3 on: October 03, 2000, 03:04:47 AM »
Interesting.  I just tried www/test and www.e-smith.mydomain.xxx/test, and it worked.  However, this is a problem.  My hostname is danb.mine.nu, and www.danb.mine.nu doesn't resolve (either inside or outside the LAN).  Can I make the e-smith machine believe that its correct name is danb.mine.nu, or do I somehow need to make www.danb.mine.nu a valid hostname?

Dan Brown

RE: Accessing ibays from outside LAN?
« Reply #4 on: October 03, 2000, 04:06:00 AM »
OK, never mind that last question--there's a little checkbox on dyndns.org such that www.danb.mine.nu is now a valid hostname.  It resolves just fine, and pulls up the home page from my server.  www.danb... is also what's in the httpd.conf as "ServerName".

I was just looking through httpd.conf, though, and I wonder if I might have found what's happening.  There are entries for 192.168.1.1 and 127.0.0.1, and both of those contain alias entries for the ibay I'm using.  If I try to access the ibay using any address which resolves to 192.168.1.1 (www, www.e-smith.danb..., the IP address itself, etc) or 127.0.0.1, it works just fine.  However, www.danb... resolves to 38.something (I'm on a dialup connection with dynamic IPs).  Since that isn't covered under either of the two VirtualHost sections, it tries to access the ibay as a subdirectory of /home/e-smith/files/primary/html/.

This doesn't sound like the way it should work.  Is it because I have a dynamic IP, that there isn't an appropriate VirtualHist entry in httpd.conf?