Pages

Sunday, 13 April 2014

Creating multiple instances of IBM HTTP Server on Windows operating systems




 For AIX, HP-UX, Linux, Solaris, and Windows operating systems  Creating multiple IHS instance by copying and renaming files http.conf and admin.conf  from a single install

1.create  two directories ( 1. instance_conf —> copy the httpd.conf and admin.conf file in to this dir  to keep the conf files i.e http.conf & admin.conf  .  2. instance_log —> to hold the log files for this new instance)

2. Edit configration file i.e httpd.conf under <IHS-root>\instance_conf> modify as :

Listen   81

PidFile   instance_log/httpd.pid

ErrorLog      instance_log/error.log

CustomLog      instance_log/access.log common

Save the configuration changes made

3. In cmd prompt, Change to <IHS-ROOT>\bin> Apache.exe   -k   start   -f   ” C:\Program Files\IBM HTTP Server\instance_conf\http.conf”

O/P:  http server is started and log files created are access, error.log and httpd.pid

5.Access Application i.e http://localhost:81 —>working

4. To register new instance as windows service:

Apache.exe   -k   install   -n   “IHS new Instance”   -f     “C:\Program Files\IBM HTTP Server\instance_conf\http.conf”

————————————–

Changes in admin.conf

1. In instance_conf directory edit the admin.conf file

2.  do changes as

Listen     8009

PidFile           instance1/admin.pid

ErrorLog         instance1/admin_error.log

CustomLog          instance1/admin_access_log common

3. save the configration

4. In cmd: registering as windows service or setup a  new instance

Apache.exe    -k   install  -n   “IHS ADMIN(2)”    -f    “:\Program Files\IBM HTTP Server\inst_conf\admin.conf”

To Unregister from windows service:

Apache.exe   -k    uninstall   -n    “IHS ADMIN(2)”

http://kishore2k9.wordpress.com/2011/02/14/creating-multiple-instances-of-ibm-http-server-on-windows-operating-systems/

No comments:

Post a Comment