1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Networks 2 + Http Servers on Port 80

Discussion in 'Hardware' started by Mortus, 6 Dec 2005.

  1. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    Afternoon all, i require some know how with http servers and tunneling etc?

    Basically i have a HTTP server running on an old PC at home with pictures etc on ..... people outsite my home network on the internet can see this and view the pics.

    However i now want to run another server on port 80 (i need to use port 80 because of people behind firewalls etc whom can only see port 80)

    So i wondered if there is something i can use on my server or maybe do something like this?

    [​IMG]


    Any input would be great thanks.


    -Mortus
     
  2. mcbeckel

    mcbeckel What's a Dremel?

    Joined:
    31 Aug 2003
    Posts:
    76
    Likes Received:
    0
    Subdomains...link
     
  3. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    That seems to give me multipul sub domains but on one http server i need to use differment servers.
     
  4. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    So you want two webservers both running on the same port on one machine with one IP address?

    Cant be done to my knowledge.

    If they were running on different ports and/or IPs id be fine.
     
  5. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    No two/three webservers running on different machines on the same external IP ..... different internal IP's but the same port.
     
  6. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    What router are you using?
     
  7. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    Well i will be using a Linksys HR200

    Even If i have to use a dedicated machine for the routing i dont mind ........ i can double it up as a file server or something.


    thanks

    -Mortus
     
  8. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    You can't bind more than one service (i.e. an instance of a web server) to the same port. Apache virtual hosts will allow you to host multiple websites on web server using the same port.

    I believe the correct question that you should be asking is "How can I host multiple web sites on one web server?"
     
  9. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    No i dont want to host multiple website on one web server


    [​IMG]


    Ill Try to explain a little better

    External IP on the router......

    Machine 1A IP=192.168.0.5 Running Apache / Photo Album

    Machine 1B IP=192.168.0.6 Running Media Portal With WebAccess (HTTP Server)

    Machine 1C IP=192.168.0.7 Running Apache / Website with Forum



    So i would like to be able to access all three but through Port 80 on the external IP .......... Different ports can be used internally but i need to gain access through 80 externally.


    Hope that is a little clearer.


    thanks

    -Tom
     
  10. coorz

    coorz Miffed

    Joined:
    25 Apr 2003
    Posts:
    1,382
    Likes Received:
    2
    Hyperlink to the other servers on the startpage?
    What's wrong with putting the other servers on different ports, just add the port when you type in the URL.
     
  11. kiljoi

    kiljoi I *am* a computer king.

    Joined:
    13 Oct 2003
    Posts:
    2,301
    Likes Received:
    0
    There's no way to have multiple servers using the same external firewall port.
     
  12. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    You cant port forward (using a router like you have) to more than one machine.

    All the websites will have to be one one single machine, you have no choice in that matter.

    Personally Id just use subdomains, its easiest :p
     
  13. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7

    I was thinking something along those lines my self.

    Cant use different ports becuase myself and other people who will access the servers can only use port 80 becuase we're behind a firewall.
     
  14. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    I know i can't portforward ........


    I read the thing about using apache and subdomains but from what i read it wouldnt work for me? Becuase im using numbers IPs without a domain name as such?
     
  15. Atomic

    Atomic Gerwaff

    Joined:
    6 May 2002
    Posts:
    9,646
    Likes Received:
    94
    You cant do what you want to. 4 people have told you this now :p

    External Port 80 can ONLY be forwarded to ONE internal machine not three like you want. And port forwarding is the only way of doing what you want

    Your limitation is only being able to use a single port (80 in your case)
     
  16. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7
    Ok so port 80 can only go to one machine.

    Is there any way to tunnel things through a one machine.

    Im also using an ADSL modem that has NAT and PAT so i guess i should see if i can buy another IP from my ISP.

    -Tom


    Thanks for the input ALL :)
     
  17. thingamajig

    thingamajig What's a Dremel?

    Joined:
    29 Nov 2005
    Posts:
    32
    Likes Received:
    0
    A Quick Google Search Lead Me To This link
     
  18. unclean

    unclean SMP obsessive

    Joined:
    30 Dec 2003
    Posts:
    1,194
    Likes Received:
    0
    You could have one webserver "proxy" the other webservers and have virtual hosts so they would be available via subdomains.

    So.. you have three subdomains all looking at the same IP. port 80 forwarded to one server, that server would then see the subdomain request and, using something like apache virtual hosts, serve a different site on the same IP. (basically the webserver looks at a different documentroot based on the subdomain requested).

    Once you've set that up you can have a script in each of said subdomain's document root, or using some features in IIS (if you're using 'doze) to forward pages from the other webservers.

    An easier way on any server would be to mount a network share on another PC and then use that as the documentroot on the webserver, but that won't work with stuff that needs to be generated on the remote machine and proxied.

    I'm really not sure why you'd need three webservers on a home connection though, you can just use the virtualhosts method to serve apparently seperate websites on the same IP.
     
  19. CaseyBlackburn

    CaseyBlackburn Network Techie

    Joined:
    27 Jul 2004
    Posts:
    1,846
    Likes Received:
    0
    You can't port forward one port to multiple computers. I suggest contacting your ISP to buy more external IPs.
     
  20. Mortus

    Mortus What's a Dremel?

    Joined:
    30 Sep 2004
    Posts:
    786
    Likes Received:
    7

    My ISP can't/wont give me any more IP's
     
Tags:

Share This Page