3 different machines using apache behind router - getting 1 to use IP

Discussion in 'Apache' started by DionDev, Mar 29, 2009.

  1. #1
    i have 3 different machines, all of which have apache installed on them. these 3 machines are all in the same nework on a dlink router. when someone visits my IP, i only want it to show the http server content coming from 1 specific machine.

    should i just change the ports on the machines i don't want my IP address to point to and forward port 80? how do i make this work properly?
     
    DionDev, Mar 29, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Does your router have any sort of port forwarding? On most home routers you can forward specific ports to a private Ip address in your network. In this case you would want to forward port 80 and 443 to the machine that you want publicly available.
     
    jestep, Mar 30, 2009 IP
  3. DionDev

    DionDev Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've forwarded port 80 (HTTP) on IP 192.168.0.103 (the IP of the computer I'm using as the web server) using a TCP traffic type. It's still not working. Does anyone have any idea?
     
    DionDev, Mar 30, 2009 IP