![]() |
|
This document helps you set up the CGI plug-in for the 'default' Server.
To set up the CGI plug-in, you need to edit the web-config.xml that can be accessed from <install_dir>\server\nodes\StandAlone\default\config\web-config.xml.
If it's a fresh installation, you must start the Server to generate the web-config.xml.
The CGI plug-in is based on Pramati Web Interceptor Architecture. Configuration parameters are passed to the interceptor through the <cgi-service> tag of the web-config.xml.
Stop the Server, and enable the <cgi-service> tag in <install_dir>\server\nodes\default\config\web-config.xml.
<cgi-service>
<enable>true</enable>
<script-alias>
<script-name>/cgi-bin</script-name>
<script-directory>C:\Pserver50\cgi-bin</script-directory>
</script-alias>
<cgi-alias>
<alias-name>/test</alias-name>
<alias-directory>C:\Program Files\Pramati\Web</alias-directory>
</cgi-alias>
<property>
<name>system_Root</name>
<value>C:\WINNT</value>
<mode>replace</mode>
</property>
<property>
<name>system_Drive</name>
<value>C:</value>
<mode>replace</mode>
</property>
<property>
<name>CLASSPATH</name>
<value>C:\Classes</value>
<mode>replace</mode>
</property>
<property>
<name>PATH</name>
<value>C:\Web</value>
<mode>add</mode>
</property>
<perl-exe>c:\perl\bin\perl.exe</perl-exe>
<php-exe>c:\php\bin\php.exe</php-exe>
</cgi-service>
You must provide appropriate values for the <alias-name></alias-name> or <script-name></script-name> tags by defining the properties between the opening and closing brackets. For example, <name>path</name>.
Related Topics:
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |