Configure multiple webservers on IPCop

Posted on 2011-04-28
Last Modified: 2012-05-11
I am using IPCop using the red/green/orange configuration.  There is currently one webserver on the orange interface configured like this:


I am trying to add a second webserver but cannot seem to get internet access on this second machine.  I have configured the second webserver like this:


but this second machine cannot get online.  

Presently under port forwarding I have rules which forward traffic to, but there are no entries at all that refer to my proposed new server at  When I try to add another rule to forward traffic from port 80 to the new server at, I get an error saying "Source port in use: 80".

Is what I am trying to do even possible?  What entries do I need to make to the IPCop configuration to allow a second webserver to be online at the same time as the original one?  

Thank you.
Question by:DanielAttard
    LVL 6

    Accepted Solution

    hi DanielAttard,

    i never tried such a setup but i know that what you actually try to do can be accomplished by the use of a Proxy Server (SQUID PROXY) running on the machine with the public IP-Adress. Since you use IPCOP there should be a the SQUID PROXY already included or you can get an extension package. But it is highly probable that you need to edit the configuration file of the SQUID PROXY manually when there is no such configuration on the WEB interface.

    here i found a good guide thanks to google :)

    greetings Jelcin
    LVL 6

    Expert Comment

    additional information about Squid Proxy can be found on
    LVL 10

    Assisted Solution

    It is obviously impossible to forward the same port (80) towards two servers: and for a firewall like IPCop and the common routers, because these do not look at the domain name inside of the requests: they only take the IP address of the webserver into account.

    But in the HTTP protocol, there is some redundant information: the IP of the webserver, but also its hostname, and that makes it possible to have several domains with the same external IP address.

    As Jelcin says, the computer with IP can be a proxy server configured with squid redirecting its traffic towards all the local webservers, but the explanation he gives is rather complex, and will suppose you have several computers in the ORANGE zone.

    Probably, it will be much faster to have your both webserves running on the same computer at If you run your website on an Apache webserver, it is a piece of cake to add a virtual server to your Apache configuration pointing to another directory as the root directory of your second webserver. if you have a directory /etc/apache2/sites-enabled, for each virtual server, you need to add a file named containing this:

            ServerAdmin # or whatever valid email for that website
            DocumentRoot /path/to/the/root/directory/of/
            DirectoryIndex index.phtml
            ErrorLog /var/log/apache2/error.log # or whatever path
            # Possible values include: debug, info, notice, warn, error, crit,
            # alert, emerg.
            LogLevel warn
            CustomLog /var/log/apache2/access.log combined # or whatever path
            ServerSignature On

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I found an issue or “bug” in the SonicOS platform (the firmware controlling SonicWALL security appliances) that has to do with renaming Default Service Objects, which then causes a portion of the system to become uncontrollable and unstable. BACK…
    Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now