[Catalyst] Where do templates/static files go under Apache?

Yuval Kogman nothingmuch at woobling.org
Wed Jun 7 15:59:34 CEST 2006


On Wed, Jun 07, 2006 at 08:12:06 -0500, Peter Karman wrote:
> 
> 
> Yuval Kogman scribbled on 6/7/06 6:34 AM:
> 
> > 
> > Personally I prefer fastcgi because it's generally been stabler and
> > none of my apps use any of the heavyweight mod_perl features.
> > 
> > If you'd like a copy of my conf template i'd be more than happy to
> > share.
> > 
> 
> yes please


host is the virtual host to use

app_dir is the directory under which it's present. I do a darcs checkout of the
whole app just under the host directory.

app_name is the lower case name of the app (e.g. "myapp")


Naturally instead of using vhost and Alias / it could be done using real paths
and stuff.


<<EOF;
[% path = "/www/" _ host _ "/" _ app_dir %]
[% fcgi_script = path _ "/script/" _ app_name _ "_fastcgi.pl" %]

FastCgiServer [% fcgi_script %] -processes 3

<VirtualHost *>
                ServerName [% host %]
                DocumentRoot [% path %]/root

                Alias /static [% path %]/root/static/
                Alias /favicon.ico [% path %]/root/favicon.ico
                Alias / [% fcgi_script %]/
</VirtualHost>
EOF

-- 
  Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org  0xEBD27418

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060607/185247ce/attachment-0001.pgp 


More information about the Catalyst mailing list