<br><div class="gmail_quote">On Wed, Jun 10, 2009 at 11:20 AM, Tomas Doran <span dir="ltr"><<a href="mailto:bobtfish@bobtfish.net">bobtfish@bobtfish.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On 10 Jun 2009, at 10:04, Francesc Romŕ i Frigolé wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Also, in the static directory I could leave some things public ( css, javascript, icons...) but make other private ( uploads, reports, ...) by placing a .htaccess file requiring authentication in each corresponding directory.<br>
<br>
</blockquote>
<br></div>
Why not just totally exclude public things from going into Catalyst at all?</blockquote><div><br><br><br>Yes, that is what I'm doing, I should have said it more explicitly. I don't make the application root directory ( /public_html/myapp) go through Catalyst. Only the subdirectories that have an explicit .htaccess do. So everything is "static" unless stated otherwise. There is no .htaccess in /public_html/myapp<br>
<br><br><span style="font-family: courier new,monospace;"></span> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
BTW, auth doesn't have to be configured in .htaccess, in fact, I'd only do that if you have to, as re-reading htaccess files can end up fairly expensive.<br>
</blockquote><div><br><br>I'm on a shared hosting. I'm trying to find out if I can get a reasonable performance serving non public static files. With the setup I described there is at most one .htaccess file that needs to be read for each request: either it redirects dynamic stuff to catalyst ( different .htaccess for public or private ) or serves a public static file (no .htaccess to be read) or serves static private files (no catalyst, static/private/.htaccess)<br>
<br>cheers<br><br><br><br><br><br><br><br><br><br><br></div></div><br><br><br>