From: Boris Z. <bo...@2b...> - 2002-10-10 09:07:35
|
Hi Gabriel, Am Donnerstag, 10. Oktober 2002 05:42 schrieb Gabriel Burca: > Is anybody using PageKit on a machine set up with virtual hosts so that > each virtual host gets its own pkit_view? Is it fairly straight forward > to set up or are you using magic URL rewriting features in Apache to > append the proper pkit_view tag to the URL? > > Any useful tricks in partitioning the model code between the various > virtual hosts so that they can share some of the common functionality? you can do this withhin Common.pm sub pkit_fixup_uri { my ( $model, $uri ) = @_; my $apr = $model->apr; my $host = lc ($apr->hostname); if ( $host =~ /^pagekit.site.de|site2|another.site.fr$/o ) { $apr->param(pkit_view => $host ); } retrun $uri; } untested but so or very similar should work fine. -- Boris |