Apache 2.4: mod_proxy_fcgi

With Apache 2.4, mod_proxy_fcgi is used.

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.
Apache 2.4 does not officially support mod_fastcgi, use mod_proxy_fcgi instead. This module requires Genero Application Server 2.50 (or later).
Note: For more information on the Apache Module mod_proxy_fcgi, please refer to the Apache documentation.
  1. Find the httpd.conf file. For example, it might be located in /etc/apache2/.
  2. Add to the httpd.conf file:
    ...
    <IfModule mod_proxy_fcgi.c>
      #No PATH_INFO with mod_proxy_fcgi unless this is set
      SetEnvIf Request_URI . proxy-fcgi-pathinfo=1
    
      ProxyPass /gas/ fcgi://localhost:6394/
      Alias /gas /opt/gas/bin/fastcgidispatch 
    </IfModule>
    ... 
    In this excerpt:
    • localhost is where the fastcgidispatch is running
    • 6394 is the port where fastcgidispatch is running
  3. Start fastcgidispatch in standalone mode: fastcgidispatch -s. If this dispatcher fails, it must be restarted manually. If the fastcgidispatch program fails, configure the inittab to spawn the fastcgidispatch program.