<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>HJK Solutions: Tag catalyst</title>
  <subtitle type="html">We Launch Startups</subtitle>
  <id>tag:blog.hjksolutions.com,2005:Typo</id>
  <generator uri="http://www.typosphere.org" version="4.0">Typo</generator>
  <link href="http://blog.hjksolutions.com/xml/atom/tag/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="http://blog.hjksolutions.com/articles/tag/catalyst" rel="alternate" type="text/html"/>
  <updated>2007-07-22T19:25:00-04:00</updated>
  <entry>
    <author>
      <name>Adam Jacob</name>
    </author>
    <id>urn:uuid:1510e278-e069-4026-9f34-33a288ca5e0f</id>
    <published>2007-07-19T14:38:00-04:00</published>
    <updated>2007-07-22T19:25:00-04:00</updated>
    <title type="html">Catalyst Deployment with Apache 2 and mod_fcgid</title>
    <link href="http://blog.hjksolutions.com/articles/2007/07/19/catalyst-deployment-with-apache-2-and-mod_fcgid" rel="alternate" type="text/html"/>
    <category term="solutions" scheme="http://blog.hjksolutions.com/articles/category/solutions" label="solutions"/>
    <category term="perl" scheme="http://blog.hjksolutions.com/articles/tag/perl"/>
    <category term="catalyst" scheme="http://blog.hjksolutions.com/articles/tag/catalyst"/>
    <category term="apache" scheme="http://blog.hjksolutions.com/articles/tag/apache"/>
    <summary type="html">&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;</summary>
    <content type="html">&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;</content>
  </entry>
</feed>

