Page 1 of 1

Webserver on LAN

Posted: 04 Jul 2010, 05:40
by paulchany
Hi,

I'm trying to explain what am I trying to do.
I have Bubba|Two with WAN and LAN (without WiFi).
On my LAN I wish to setup a webserver. I have registered FQDN: csanyi-pal.info.
I'm using ZoneEdit to manage my Zone: csanyi-pal.info <=> dynamic IP address (that I get from my ISP and this IP is public). So my Bubba webserver is accessible from the Internet on address: http://csanyi-pal.info.

What I wish is that that the webserver on my LAN is accessible from the Internet on address: http://edu.csanyi-pal.info but I haven't another public IP address. Can I get this to work?

Any advices will be appreciated!

Re: Webserver on LAN

Posted: 04 Jul 2010, 06:41
by RandomUsername
Do you want the two addresses to point to the same page or different pages?

If the former, you can just add another address to your zone record in ZoneEdit. The latter will require a bit of Apache jiggery-pokery too I think (i.e. creating a virtual host).

Re: Webserver on LAN

Posted: 04 Jul 2010, 07:26
by Tompa
I think what he means is that the address http://csanyi-pal.info should point to the bubba webserver, while the subdomain http://edu.csanyi-pal.info should point to a different machine on the LAN.

Since the only public IP he has listens on port 80 on bubba, one would think that some other fiddling must be done to redirect traffic from the bubba to another machine based on the URL?

Correct me if I'm wrong but I don't think Apache handles this type of redirect? Someone told me that reverse proxy could be a way to solve this but I'm not sure how :/

/Tompa

Re: Webserver on LAN

Posted: 04 Jul 2010, 07:39
by RandomUsername
I see. I'm not sure I see the point in that kind of setup. No idea how to go about it either.

Re: Webserver on LAN

Posted: 04 Jul 2010, 09:07
by paulchany
Tompa wrote:I think what he means is that the address http://csanyi-pal.info should point to the bubba webserver, while the subdomain http://edu.csanyi-pal.info should point to a different machine on the LAN.
Exactly that's what I want but don't know how to get it?
On my webserver on LAN I want to run Moodle, and Debian-Edu and want to setup Bubba|Two so that the webserver on LAN be reachable from the Internet as http://edu.csanyi-pal.info.

The webserver on LAN is a Pentium IV class machine and Debian GNU/Linux Lenny run on it. So I can to setup it to run on it Moodle and Debian-Edu. The only problem is how to setup the Home Network with Bubba|Two so to get it work as I wish, that is to get it being reachable from the Internet.

Re: Webserver on LAN

Posted: 04 Jul 2010, 14:31
by paulchany
Tompa wrote: Correct me if I'm wrong but I don't think Apache handles this type of redirect? Someone told me that reverse proxy could be a way to solve this but I'm not sure how :/
/Tompa
http://www.apachetutor.org/admin/reverseproxies
On the abowe webpage one can read that that Apache2.2 is neaded for reverse proxy.
On my Bubba|Two is running Debian GNU/Linux Etch so I can't to install with aptitude the Apache2.2, right?
Is there a way to install on my Bubba|Two Debian Lenny?