Consultor Eletrônico



Kbase 16067: UNIX CGI test script: webserver testing w/ WebSpeed1.0/2.x
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/06/1998
UNIX CGI test script: webserver testing w/ WebSpeed1.0/2.x

Often, the first step in testing WebSpeed problems is to be
sure that the web server is properly configured to run CGI
scripts. A simple CGI test script for UNIX is given below.
It should be saved in your CGI scripts directory as test-cgi.
The CGI scripts directory must be configured in your server
set-up, but the default directory name for most servers is
cgi-bin. See your server documentation for details. Be
sure the directory has read permissions by the owner of the
server executable, and be sure the script itself has execute
permissions by the owner of the server executable. To run
the script from your browser, you should use a URL like:

http://<server host name>:<server port>/cgi-bin/test-cgi

The directory cgi-bin will be the default for most servers,
but may be different depending on how the server is set up.
If this does not work, then your server is not properly
configured. Since the WebSpeed messenger script must be
executed by your web server's CGI interface, this MUST work
before you can use WebSpeed.

-----------------------CUT HERE--------------------------
#!/bin/sh

# Save this as test-cgi in your web server's CGI scripts
# directory.

echo 'Content-type: text/plain'
echo
echo 'CGI test was successful!'
-----------------------CUT HERE--------------------------

Progress Software Technical Support Note # 16067