G.W.,
Thanks for the help with my question. I meant to send
a note yesterday, but to be honest, couldn't remember
if I actually sent it. So wanted to be safe rather
than ungrateful.
Regarding the points you made, I will need to look
into them a bit more before I really know if I'm
running things the right way. I kind of followed a
cook-book and got this thing working, and to be
honest, I really am not sure what I've got (mod_perl
or Apache::Registry). :)
Specifically, the only module i've tried so far is the
Footer.pm, and it in fact was installed into:
/usr/local/apache/lib/perl/Apache.
As for the "bit" about cgi-bin, I did not know that it
would make a difference, so I just used it as an
example. Actually, I have in the httpd.conf file the
following:
Alias /db-bin/ "/home/httpd/db-bin/"
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
#
# SetHandler perl-script
# PerlHandler Apache::Footer
#
## Commented out as the CGI.pm won't parse otherwise.
If you still happen to be reading this, I'd sure
appreciate a quick note if anything obvious jumps out
at you regarding directories (above). I'm in the
process of trying to understand why my "stuff" fails
under "use strict;" (vars, redefined subroutines,
etc.) and then I'll try and go for the Footer. But if
it's a simple one, would love to knock it out and have
some uniform footers. :)
Thanks again for your help.
-Brett
As for the
--- "G.W. Haywood" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> On Sat, 24 Jun 2000, My Alias wrote:
>
> >
> > SetHandler perl-script
> > PerlHandler Apache::Footer
> >
> >
> > and restarted the server.
> >
> > Now, what used to be sent out as html is sent out
> > looking like:
> >
> > #!/usr/bin/perl -w
> > use strict;
> > blah,
> > blah,
> >
> >
> >
> > I'm using CGI.pm and Apache::Registry.
> > What did I miss?
>
> I can't see anything about Apache::Registry in your
> message except the
> bit where you claim to be using it. Without seeing
> your entire Apache
> configuration I'm not _sure_ you're doing this, but
> I think you are
> trying to have your handled BOTH
> by mod_perl AND by
> mod_cgi. I don't think you really want that. You
> want some other
> Location such as for your mod_perl stuff,
> so you keep
> cgi-bin for old CGI scripts and stuff like that. To
> keep it clean, I
> wouldn't even use Registry on things in there.
>
> So for example for mod_perl stuff you might say:
>
> Alias /perl/ /usr/local/apache/cgi-perl/
>
> SetHandler perl-script
> PerlHandler Apache::Footer
>
>
> and for Apache::Registry stuff:
>
> Alias /registry/ /usr/local/apache/cgi-registry/
>
> SetHandler perl-script
> PerlHandler Apache::Registry
>
>
> The `Location' /perl/ doesn't really exist, it's
> just a URI that
> triggers Apache to look for things in the directory
> (in this case)
> /usr/local/apache/cgi-perl/. Then when it's time to
> serve the content
> Apache notices that there's a handler installed for
> that location, the
> handler being mod_perl. When it's handling requests
> for stuff to be
> served from that location, mod_perl gets the
> instruction to call
> Apache::Footer. Apache::Footer just modifies the
> file and sends it on
> its way. Similarly for Registry (presumably what
> used to be your CGI)
> scripts. There's nothing wrong with the example in
> the Eagle Book.
>
> 73,
> Ged.
>
__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/