Consultor Eletrônico



Kbase P113357: How to setup WebSpeed messenger script file with Apache web server running on Windows machine
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/13/2008
Status: Verified

GOAL:

How to setup WebSpeed messenger with Apache web server running on Windows using direct broker connection

GOAL:

How to configure multiple WebSpeed messengers with Apache on Windows without using NameServer

GOAL:

How to avoid using WebSpeed service name in URL with Apache web server running on Windows

FACT(s) (Environment):

Windows
WebSpeed 3.x
OpenEdge 10.x
Apache

FIX:

With the default WebSpeed configuration when using Apache web server running on Windows
operating system, the URL looks similar to this:
http://hostname/cgi-bin/cgiip.exe/WService=wsbroker1/procedure_name.p
Very often it is required that URL has different format, either because of the readability,
or to hide the information about WebSpeed service being used.
An example of such a URL would be:
http://hostname/cgi-bin/accounting.cgi/procedure_name
When using the IIS web server this can be achieved using the Application Extension
Mapping for which the cgiip.wsc file is being provided.
In order to do the same for Apache web server follow the steps:
1. Edit Apache's httpd.conf file and uncomment, or add following line:

AddHandler cgi-script .cgi

2. In your Apache cgi-bin directory create text file named e.g. "accounting.cgi" with the following content (one line) BUT have a carriage return line feed for an empty line by pressing enter button on the key board on the accounting.cgi file:

#!"<Path to Progress/OpenEdge installation dir>\bin\cgiip.exe" "<Some directory>\broker1.txt"

and the actual example should look like this:

#!"C:\DLC\bin\cgiip.exe" "C:\Program Files\Apache Software Foundation\Apachex.x\cgi-bin\broker1.txt"

# Where DLC indicates progress/OE installation directory and
# x.x indicates Apache version number. The apache installation path shown above is the default on Windows.

3. Create the text file named e.g. "broker1.txt" with the content being the same
as in cgiip.wsc, as all options apply. For direct broker connection, it should be like this:

<WS_broker_host_name> <WS_broker_port_number>

and actual example should look like this (one line):

myserver 3055

4. Restart your Apache web server and test your configuration using appropriate URL, such as:
http://hostname/cgi-bin/accounting.cgi/procedure_name

5. Repeat steps 2 and 3 for as many different messenger scripts as required.