The latest "Release Notes" says:
I'm currently running two instances of the WAS (V9) on one of my servers on port 80 and port 443, and I have been starting the two instances using an Alpha autoexec script that runs off a shortcut. This release note seems to indicate that I can now set up two different configuration files, and use those to start up the instances instead of the current script.
The instructions for doing this, however are a little sketchy.
After installing the update and starting the two instances with the script, I have the two instances running successfully, but when I look for the folder(s) and XML file(s), there is only one folder and only the settings for the second instance are listed. I had expected to see two folders and two files.
The script I'm using is:
As I said, only the settings for the Standard Server were in an XML file. Should I create the second file manually?
How can I refer to these configuration files when doing the startup?
Pat
Application Server - Server Settings - The Server Settings were previously stored in the Registry. Now, they are stored in an XML file. The location of this file can be determined from the following expression:
A5_GetInstallationApplicationDataFolder(.t.) + "\ApplicationServerConfig.xml"
This change means it is now possible to run multiple Servers on the same physical machine (on different ports), because each will have their own settings file.
(Note: a5_GetInstallationApplicationDataFolder(.t.) returns a unique folder name for each installation of Alpha Five on a machine.)
A5_GetInstallationApplicationDataFolder(.t.) + "\ApplicationServerConfig.xml"
This change means it is now possible to run multiple Servers on the same physical machine (on different ports), because each will have their own settings file.
(Note: a5_GetInstallationApplicationDataFolder(.t.) returns a unique folder name for each installation of Alpha Five on a machine.)
The instructions for doing this, however are a little sketchy.
After installing the update and starting the two instances with the script, I have the two instances running successfully, but when I look for the folder(s) and XML file(s), there is only one folder and only the settings for the second instance are listed. I had expected to see two folders and two files.
The script I'm using is:
Code:
'Date Created: 13-Nov-2007 05:45:37 PM 'Last Updated: 17-Mar-2008 03:48:11 PM 'Created By : Administrator 'Updated By : Administrator '==== start two instances of the WAS dim servset as p = httpd_settings_get() '==== start the SSL server servset.SERVER_PORT = 443 servset.SSL_Enabled = .T. servset.error_log = "C:\Documents and Settings\Administrator\Desktop\a5_SSL_error.log" servset.access_log = "C:\Documents and Settings\Administrator\Desktop\a5_SSL_access.log" servset.DOCUMENT_ROOT = "C:\a5v9\A5Webroot\secure" servset.session_cookie_name = "A5W_SSL_ID" servset.DefaultPage = "index.a5w" servset.systray_title = "A5V9 SSL Server" httpd_settings_save(servset) sleep(5) sys_shell("C:\Program Files\A5V9 ApplicationServer\A5ApplicationServer.exe") '==== wait for the first server to get started sleep(20) '==== start the standard server servset.SERVER_PORT = 80 servset.SSL_Enabled = .f. servset.error_log = "C:\Documents and Settings\Administrator\Desktop\a5_STD_error.log" servset.access_log = "C:\Documents and Settings\Administrator\Desktop\a5_STD_access.log" servset.DOCUMENT_ROOT = "C:\a5v9\A5Webroot" servset.session_cookie_name = "A5W_STD_ID" servset.DefaultPage = "index.a5w" servset.systray_title = "A5V9 Standard Server" httpd_settings_save(servset) sleep(5) sys_shell("C:\Program Files\A5V9 ApplicationServer\A5ApplicationServer.exe") '==== wait for the second server to get started sleep(20) '==== close this copy of Alpha Five a5.close()
How can I refer to these configuration files when doing the startup?
Pat
Comment