Results 1 to 5 of 5

Thread: apache port forwarding

  1. #1
    Join Date
    Jul 2010
    Location
    England
    Beans
    202
    Distro
    Ubuntu

    apache port forwarding

    Hi All,

    Ok I have set up a couple of webservers 12.04 on virtualbox. These are just for testing and stuff so nothing to serious.

    The first one was working fine but as it goes I started playing with webmin and things went a bit wrong..

    So I set up the second server and set up port forwarding on my router...could not gain access from the outside world. After a while looking around I decided the remove the setting from my router for the first server and bingo it all works.

    Question: I have a draytek router..is it possible to run two servers through one router or would I need to use port 8080?

    cheers spill.
    amd 2.8Ghz quad core
    GeForce 8600 GT
    4Gb ram
    10.04

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apache port forwarding

    You can't forward the same port to two different private IPs.

    Also, unless the people accessing from the outside know to use different port, you can't really set up two different webservers behind the same router (public IP). How will it know what traffic for port 80 to forward to which server?

    Without using a different port from the outside, any browser will send the http traffic on port 80. They don't use 8080 or whatever, unless specifically told to.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Jul 2010
    Location
    England
    Beans
    202
    Distro
    Ubuntu

    Re: apache port forwarding

    ok thanks that kinda what I thought.
    amd 2.8Ghz quad core
    GeForce 8600 GT
    4Gb ram
    10.04

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,519
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: apache port forwarding

    You can still create an unlimited number of virtual servers on a single IP using name-based virtual hosting.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Nov 2007
    Location
    Newry, Northern Ireland
    Beans
    1,258

    Re: apache port forwarding

    And don't forget that if you specifically need to use separate servers for different websites, you can forward port 80 to one, and use it as a reverse proxy to the other.
    Can't think of anything profound or witty.
    My Blog: http://gonzothegeek.blogspot.co.uk/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •