DevPortal

What is the script-alias tag?


The URL used to request a perl or CGI script must follow the pattern: http://host:port/<script-alias><script>.

Here host and port are the Server host name/HTTP port configured, and <script-alias> is the alias that points to the location of the script (<script>) on the Web Server.

<script-alias> is registered with the server configuration XML the same way as <cgi-alias>, through script-name and script-directory tags.

Table 1: The script-alias tag
Tag element Sub-tags Description Example values




<script-alias> - Maps an alias to the path where the file is located. The file requested will be executed and the output will be served. /cgi-<script directory>/exec
- <script-name> Alias name. Prefix the alias name with '/' character. /cgi-<script directory>
- <script-directory> Alias name maps to this path to the location of the file. c:\orant\tools\web60\cgi-<script directory>


For example:

<script-alias>
  <script-name>/cgi-bin</script-name>
  <script-directory>
</script-alias>

Then, the URL resolved would be http://host:port/cgi-bin/<script>.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal