2008-01-05 12:29:29

Catalyst で FastCGI

[Catalyst]

Fedora7で。

yum install mod_fcgid

vim /etc/httpd/conf/httpd.conf

Listen 8086
NameVirtualHost 192.168.0.1:8086
<VirtualHost 192.168.0.1:8086>
    Alias /static /home/user/www/MyApp/root/static
    <Location /static>
        SetHandler default-handler
    </Location>
    Alias / /home/user/www/MyApp/script/myapp_fastcgi.pl
    <Location />
        Options All
        Order allow,deny
        Allow from all
        AddHandler fcgid-script .pl
    </Location>
    ErrorLog logs/8086-error_log
    CustomLog logs/8086-access_log combined
</VirtualHost>