[Catalyst] Apache coexistence

Matt S Trout dbix-class at trout.me.uk
Tue Jul 25 02:55:26 CEST 2006


Eric W. Bates wrote:
> thanks.  good answer.
> 
> Boris Ceranic wrote:
>> Actually, I haven't answered your question. :) From Apache point of
>> view, any per-dir configuration, especially Rewrite directives, are
>> much slower than vhost or server wide directives. So, if possible, go
>> with Apache <Location ...> tags. If not (in shared hosting
>> environment), go with this one, or whatever you figure out - just keep
>> in mind that it is best to do the job as close to the request itself
>> as possible, and, since Apache is serving requests, it is best to let
>> it do the job.

I've used mod_rewrite globally before now.

But <Location> is almost certainly going to be faster, so use that where 
possible and consider mod_rewrite an escape valve.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list