5.5 Starting with a Custom Configuration Directory

Use the -configDir option to specify an alternate config directory, different from the default SERVER_HOME/config directory. This option allows you to use the same Virgo Tomcat Server installation to run multiple instances of VTS. Simply create a config directory for each instance, specify unique port numbers, logging and tracing directories, and so on, and then specify that directory when starting VTS.

If you specify a relative path for the -configDir parameter, the startup script interprets the path as relative to the root of the Virgo Tomcat Server installation, and not relative to the directory from which you execute the startup script.

See Alternate serviceability and work Directories for a known issue related to specifying an alternate config directory.

Linux

To start Virgo Tomcat Server using a config directory of /config/node1:
prompt$ cd $SERVER_HOME
prompt$ bin/startup.sh -configDir /config/node1

Windows

To start Virgo Tomcat Server using a config directory of c:\config\node1:
prompt> cd %SERVER_HOME%
prompt> bin\startup.bat -configDir c:\config\node1