Sun Java™ System Web Server 7.0

Sun Web Server 7 has an integrated FastCGI support.

Note: Assume the Genero Application Server is installed in the following directory (FGLASDIR): /opt/gas. Make the appropriate substitution for the FGLASDIR when applying these examples to your own configuration.

For more information, see the FastCGI Plug-in documentation provided by Sun.

Enable FastCGI Plug-in

Add this line to your magnus.conf configuration file:
Init fn="load-modules" shlib="libfastcgi.so"

FastCGI Plug-in manage Gas

Add these lines in your obj.conf configuration file:
<Object name="default">
  ...
  NameTrans fn="assign-name" from="/gas/*" name="gas.config"
  ...
</Object>

<Object name="gas.config">
  Service fn="responder-fastcgi" app-env="FGLASDIR=/opt/gas" 
  app-path="/opt/gas/bin/wrapper.fcgi" reuse-connection="true" 
  resp-timeout="300" restart-interval="0"
</Object>
Note:
  • The "resp-timeout" must be greater than the <REQUEST_RESULT> timeouts in the GAS configuration.