Setting up a sub domain on a seperate server on internal network. Help.......

Discussion in 'Site & Server Administration' started by robsbots, Aug 8, 2010.

  1. #1
    Hi all.

    I have a static IP address and have a website hosted on a debain server running apache2.

    What I would like to do is host a sub domain on a seperate server on the same local network.

    This is what I have
    domain.org.uk --->Static_IP----->Router port 80 ------>Main server

    This is what I need ( I think )
    sub.domain.org.uk--->Static_IP------->Router port 80 ------>Main server----->Other server

    I have added an A record for the sub domain though my ISP. I just need to know how to tell my main server to forward all requests for sub.domain.org.uk to a different (local) ip address.

    Currently my router sends all port 80 traffic to 192.168.0.1. This server should serve domain traffic and forward sub.domain traffic to 192.168.0.2 I think.

    Thanks for any help you can offer.
    (btw I have no fancy GUI. Im command line all the way but I'm happy to edit txt files etc)

    Regards

    Rob
     
    robsbots, Aug 8, 2010 IP