Consultor Eletrônico



Kbase P77755: How to change the base URL when not using AppURL in SppedScript (Apache/UNIX)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to change the base URL when not using AppURL in SpeedScript (Apache/UNIX)

GOAL:

How to change the URL when not using {&OUT} '<BASE HREF="' AppURL '/test/">~n'.

FIX:

If you are moving the applications from e.g. iPlanet and Messenger wsna.dll and the base URL contains e.g. 'http://<server name>/wsna.dll/..' and don't want to change the base URL in all the code to e.g. 'http://<server name>/cgi-bin/wspd_cgi.sh/..' you can do the following:

1) Rename the wspd_cgi.sh script to wsnsa.dll
2) Put the script in a directory which has permission to execute CGI scripts:
3) Add the following to the Apache conf file
<Directory /directoryname>
Options +ExecCGI
AddHandler cgi-script .dll
</Directory>

The AddHandler line arranges that .dll files can be executed.

However the best practice is to use {&OUT} '<BASE HREF="' AppURL '/test/">~n'. in the code.