Configure multiple webservers on IPCop

Posted on 2011-04-28
Medium Priority
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
  • 2

Accepted Solution

Jelcin earned 1000 total points
ID: 35485052
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

Expert Comment

ID: 35485063
additional information about Squid Proxy can be found on

LVL 10

Assisted Solution

by:Pierre François
Pierre François earned 1000 total points
ID: 35491190
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 v.gr. mysite2.com.conf containing this:

NameVirtualHost www.mysite2.com
<VirtualHost www.mysite2.com>
        ServerAdmin webmaster@mysite2.com # or whatever valid email for that website
        DocumentRoot /path/to/the/root/directory/of/mysite2.com
        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


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

850 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