On Tue, 28 Mar 2006 02:21:29 -0500
James <[EMAIL PROTECTED]> wrote:
> How does one set-up
> the Apache config? Is the PerlResponseHandler Blah::Main put under
> the <Directory> directive for the document root? What would the
> document root be?
Well there are no "documents" so <Directory>s and DocumentRoot
don't really come into play.
Here is how it is setup:
<Location />
SetHandler perl-script
PerlResponseHandler Blah::Main
</Location>
Note, that most people avoid putting handlers on / as it can
cause you issues when using other modules on the same URL, if you
aren't careful.
What I typically do is setup a redirect for / to say /main and then
park Blah::Main at <Location /main>. Same effect without polluting
/.
> How are these things typically dealt with when
> there is dynamic content (i.e. user-specific stuff) on the homepage?
> I have a feeling 'templating' is going to be the response. Yeah, I
> should probably start looking at that. :) (Right now it's just the
> no-no of having a class that generates different parts of the page,
> filled with a lot of HTML mixed with some Perl conditionals for
> user-specific stuff)
Yes, templating is the answer here. If you haven't used it before
it sounds like it is going to be confusing and hard to do, but
once you actually do it you'll wonder how you ever lived without
it before. :)
---------------------------------
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
---------------------------------