Create multiple instances of IBM HTTP Server on Windows operating systems

On Windows operating systems, we can manually create more service names to create multiple instances of IBM HTTP Server.


About this task

When you install IBM HTTP Server, you create one IBM HTTP Server as a Windows service with a default name. If you need to run with more than one IBM HTTP Server instance, we can manually create more service names.


Procedure

  1. Install a new service name. Use the httpd.exe program, which is located in the bin directory of the IBM HTTP Server installation. Use the following command to install a new service name:
    httpd -k install -n <new_service_name> -f 
       <path_to_new_configuration_file> 

    This command allows you to associate a unique configuration file with each service name.

  2. Specify different IP addresses or ports in the Listen directives of each configuration file and specify different log file names.

  3. Optional: Change settings of the new service by using the Windows Services control panel. The new service name has Log On set to Local System Account, and has Startup Type set to Automatic. We can change these default settings by using the Windows Services control panel. You might need to change the Log On setting of the new service name to match the Log On of the main installation to ensure that file permissions allow the new service name to run.

  4. Disable the Fast Response Cache Accelerator (FRCA). When you run multiple instances of IBM HTTP Server, disable the FRCA (AFPA directives) in all configuration files.


What to do next

After you create a service name, create a web server definition and specify the new service name and the path to the new configuration file to add it to the WebSphere® Application Server administrative console.Use the following syntax to uninstall an existing service:
httpd -k uninstall -n <service_name>


Related tasks