[lug] remotely accessible sub-domain

John Hernandez John.Hernandez at noaa.gov
Tue Feb 25 13:07:32 MST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 25 February 2003 09:24 am, Paul Nowosielski wrote:

> Ok,
>
> Port 80 and 22 are already forwarded from the modem to the main
> box(10.0.5)and apache is listening for my domain name.So when I forward
> port 80 from 10.0.0.5 to 192.168.2.2 it blocks apache from the 10.0.0.5
> box.
> I want to make 192.168.2.2 a sub-domain of 10.0.0.5 so apache from
> 192.168.2.2 only listens for subdomain.maindomain.com .
>
> Can I do this with one Internet IP?
>

Paul, one way to do this is with a web proxy.  For example, use Squid in a 
'reverse proxy' configuration on your 10.0.0.5 box.  Have the proxy listen on 
port 80, and move apache on that box to port 8088.  Then you can have squid 
proxy to localhost:8088 or 192.168.2.2:80, depending on the URI in the 
incoming request.

- -- 

 |  John Hernandez - NOAA Boulder NOC - 303-497-6392
 |  Mailstop R/OM62. 325 Broadway, Boulder, CO 80305
 |  PGP Public Key ID: 586A7E23
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+W80QB1Kl6VhqfiMRAqPLAJ9KcfkynZcn4J788PwvLaB5xg6o0gCfcaLS
hfVCNOAPNTY92LMf0X21e5E=
=v5Fh
-----END PGP SIGNATURE-----



More information about the LUG mailing list