Consultor Eletrônico



Kbase P15829: Can the messenger file, wspd_cgi.sh be renamed?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/02/2003
Status: Unverified

GOAL:

Can the messenger file, wspd_cgi.sh be renamed?

GOAL:

Can we hide the wspd_cgi.sh file from the URL?

FIX:

Yes, this file can be renamed to hide that the wspd_cgi.sh is being referenced within the URL. When the file is renamed, it does not have to have '.sh' extension. However, make sure that the file is a script that can be executed.

To create a script file, you can do the following as referenced below. This example will not only rename and hide the '.sh' extension.

1. Create a duplicate of the existing file, wspd_cgi.sh.
Do this by performing a SAVE-AS against wspd_cgi.sh and name the file to whatever you like. For this example, the file is being named 'cover' and is a script that can be executed.

2. This sample script starts the cgiip executable through Option 2, cgiip -i <WS_service>. Refer to the NOTE, for other Options that you can tailor your script file.

Also, edit the DLC and WRKDIR sections to your information

#!/bin/sh

#/**************************************************************/
#/* Copyright (c) 1997 by Progress Software Corporation */
#/* */
#/* All rights reserved. No part of this program or document */
#/* may be reproduced in any form or by any means without */
#/* permission in writing from Progress Software Corporation. */
#/**************************************************************/
#
# WebSpeed CGI Messenger startup script - UNIX Version

# Abreviated from wspd-cgi.sh

# This is a sample of the CGI-based WebSpeed Messenger
# (cgiip) startup script for UNIX. The two environment
# variables: DLC, PROMSGS must be defined for cgiip to
# operate properly. Normally, this shell script
# would reside in the Web Server's scripts directory (e.g. cgi-bin)
# and would be specified in a URL, for example:
# http://hostName/cgi-bin/wspd_cgi.sh/web/src/examples/runscrpt.w
#

# Location of Progress Webspeed
DLC=/progress/webspeed;export DLC

# Set PROMSGS (if not set)
PROMSGS=${PROMSGS-$DLC/promsgs};export PROMSGS

# Set the user working directory - this is a tailored value
WRKDIR=/progress/wrkdir;export WRKDIR

$DLC/bin/cgiip -i webspeedtest Progress Broker

3. Save file
4. Make sure all webspeed components are up and running
5. Enter the following URL to initiate webspeed workshop request
:http://localhost/cgi-bin/webspeed/cover/workshop