[Catalyst] Multiple FastCGI app servers with Apache2

Adeola Awoyemi adeola at digitalcraftsmen.net
Thu Aug 2 16:08:40 GMT 2007

Tobias Kremer wrote:
> Does anyone know if it's possible to distribute requests to multiple external
> FastCGI servers with Apache2 + mod_fastcgi similar to the round-robin
> load-balancing approach lighttpd provides? I have this large legacy app running
> on mod_perl behind an apache2 reverse proxy where I'd like to plug in my new
> Catalyst app via FastCGI which eventually should run on more than one physical
> app server. If possible I'd like to stick with Apache2 as the reverse proxy for
> now ...

This is possible (as I have done the same) by adding multiple instances of:

FastCgiExternalServer /path/to/MyApp/script/myapp_fastcgi.pl -host

to the apache2 config file. Also make sure you use different ports or 


Creative Developer - Digital Craftsmen Ltd
Exmouth House, 3 Pine Street
London, EC1R 0JH
t: +44 20 7183 1410
f: +44 20 7099 5140
m: +44 79 3952 0786
w: http://www.digitalcraftsmen.net/

More information about the Catalyst mailing list