<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>HJK Solutions: Catalyst Deployment with Apache 2 and mod_fcgid</title>
    <link>http://blog.hjksolutions.com/articles/2007/07/19/catalyst-deployment-with-apache-2-and-mod_fcgid</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>We Launch Startups</description>
    <item>
      <title>Catalyst Deployment with Apache 2 and mod_fcgid</title>
      <description>&lt;p&gt;Catalyst has long had &lt;a href="http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7007/lib/Catalyst/Engine/FastCGI.pm"&gt;FastCGI support built in&lt;/a&gt;, but all of the recipes are for the much older &lt;a href="http://www.fastcgi.com/"&gt;mod_fastcgi&lt;/a&gt;.  As a Debian user, and fan of software that&amp;#8217;s still maintained, I prefer &lt;a href="http://fastcgi.coremail.cn/"&gt;mod_fcgid&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;What follows is a simple Apache 2 virtual host for a Catalyst application, using mod_fcgid:&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;
&amp;lt;VirtualHost *:80&amp;gt;
    ServerName www.example.com
    ServerAlias example.com
    ErrorLog logs/www.example.com.error_log
    TransferLog logs/www.example.com.access_log

    # This should point at your myapp/root
    DocumentRoot /srv/myapp/root
    Alias /static /srv/myapp/root/static

    &amp;lt;Location /static&amp;gt;
        SetHandler default-handler
    &amp;lt;/Location&amp;gt;

    Alias / /srv/myapp/script/myapp_fastcgi.pl/

    &amp;lt;Location /&amp;gt;
        Options ExecCGI
        Order allow,deny
        Allow from all
        AddHandler fcgid-script .pl
    &amp;lt;/Location&amp;gt;
&amp;lt;/VirtualHost&amp;gt;
&lt;/code&gt;
&lt;/pre&gt;</description>
      <pubDate>Thu, 19 Jul 2007 14:38:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:1510e278-e069-4026-9f34-33a288ca5e0f</guid>
      <author>Adam Jacob</author>
      <link>http://blog.hjksolutions.com/articles/2007/07/19/catalyst-deployment-with-apache-2-and-mod_fcgid</link>
      <category>solutions</category>
      <category>perl</category>
      <category>catalyst</category>
      <category>apache</category>
      <trackback:ping>http://blog.hjksolutions.com/articles/trackback/4</trackback:ping>
    </item>
  </channel>
</rss>
