Icon Multiple Web Server Instances

Multiple instances of the web server can be run on the same physical machine by using named server instances. Named server instances are simply instances of the web server that were executed using two special command-line switches:

ewbsrvr.exe /name=<Server Name> /desc=<Server Description>

Named server instances use the passed name and description to provide the name of the web server instance, as well as the description. The name parameter is also used to determine which section of the configuration .ini file is used for configuring the web server instance. Instead of just the normal "Server" section being used in the configuration .ini file, the section is named using the provided server name. For example, if the named server instance is called "MyServer", then the section in the configuration .ini file where the configuration is stored will be the following:

[Server_MyServer]

The description parameter, if also specified, is immediately written to Server Description configuration entry key under the named server instance section of the configuration .ini file. All other configuration options must be modified manually.

Named Server Instances and Services
In order to use a named server instance as a Windows service, the name parameter must be specified during the installation of the service. For example, if the named server instance is called "MyServer", then the service installation would be accomplished using the following from the command-line:

ewbsrvr.exe /install /name=MyServer /desc="My Server"

When you want to start the named server instance as a service, you would simply just use the following from the command-line:

net start MyServer

The following example shows how you would install two named server instances as services, and then start them:

ewbsrvr.exe /install /name=MyFirstServer /desc="My First Server"

ewbsrvr.exe /install /name=MySecondServer /desc="My Second Server"

net start MyFirstServer

net start MySecondServer

Information There is no limit to the number of server instances that can be started, but each instance must use a different server name and set of insecure and secure ports.
Image