In your main lib/MyApp.pm file you&#39;ll probably notice you&#39;ve got a line of code like<div>use Catalyst qw/ ... Static::Simple .../;<br><br></div><div>That pulls in Catalyst::Plugin::Static::Simple which does the part you&#39;re asking about.</div>
<div><br></div><div>See <a href="http://search.cpan.org/~mstrout/Catalyst-Plugin-Static-Simple-0.29/lib/Catalyst/Plugin/Static/Simple.pm">http://search.cpan.org/~mstrout/Catalyst-Plugin-Static-Simple-0.29/lib/Catalyst/Plugin/Static/Simple.pm</a> for tricks on configuring it to do your bidding.</div>
<div><br></div><div><br></div><div>Also, when running under a webserver such as Apache, you&#39;d likely do some configuring there to have the webserver send the static files directly instead of calling on Catalyst to parse through them.</div>
<div><br></div><div>E.g. <a href="http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst/Engine/FastCGI.pm#Static_mode">http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst/Engine/FastCGI.pm#Static_mode</a></div><div>
<br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Feb 23, 2011 at 7:21 PM, John M. Dlugosz <span dir="ltr">&lt;<a href="mailto:wxju46gefd@snkmail.com">wxju46gefd@snkmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"> On 2/23/2011 6:26 AM, Octavian Rasnita <a href="http://orasnita-at-gmail.com" target="_blank">orasnita-at-gmail.com</a> |Catalyst/Allow to home| wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But you can create one or more directory with static files, for example /images, /js, /css. These directories must be created under the root directory.<br>
And of course, it is recommended to configure the web server to not send the requests to those directories to the Catalyst app.<br>
</blockquote>
<br></div>
That&#39;s exactly what I want.  How do I tell Catalyst that /images should be static files under /root/images, rather than a controller named Images?<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
And as Carl recommended, it is good to not hard-code the URLS in the templates because they won&#39;t work if you&#39;ll want to make some changes and want to put the whole application to listen to a different base than /, for example /old-site.<br>

<br>
So use $c-&gt;uri_for(&#39;/path/to/static/file&#39;);<br>
or<br>
$c-&gt;uri_for_action(&#39;/path/to/action&#39;); #for the dynamic pages<br>
<br>
</blockquote></div>
I see, so do that for static files too, not just actions?<div><div></div><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>The first step towards getting somewhere is to decide that you are not going to stay where you are.  -- J.P.Morgan<br>
</div>