Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 60288 invoked by uid 500); 5 Dec 2002 08:34:31 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 60265 invoked from network); 5 Dec 2002 08:34:29 -0000 From: "Beau E. Cox" To: "Stas Bekman" Cc: "Modperl" Subject: RE: [mp2] LogHandler configuration problems Date: Wed, 4 Dec 2002 22:34:39 -1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <3DEEFEE4.6060800@stason.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Stas - ...look at the error log... For the first test, which my logger reported: ::1 [Wed Dec 4 19:58:13 2002] "/" 404 266 ::1 [Wed Dec 4 19:58:24 2002] "/index.html" 403 280 ::1 [Wed Dec 4 19:58:45 2002] "/perl/rocks.html" 200 29 The error log reported: [Wed Dec 04 19:58:13 2002] [error] [client ::1] Attempt to serve directory: /srv/www/htdocs/ [Wed Dec 04 19:58:24 2002] [error] file permissions deny server execution/srv/www/htdocs/index.html I don't see that these error_log entries "...revealed the problem right away, from the first test..." To me, newbie that I am, they give abount the same information that my logger gave... OK, I'll relax. The secret is to read and test more before crying wolf, Aloha => Beau. -----Original Message----- From: Stas Bekman [mailto:stas@stason.org] Sent: Wednesday, December 04, 2002 9:23 PM To: Beau E. Cox Cc: Modperl Subject: Re: [mp2] LogHandler configuration problems Beau E. Cox wrote: > Well Stas, you asked for it... :) [...] > #-------------------mod_perl 2.0 rocks > test--------------------------------- > Alias /perl/ /srv/www/conf/perl/ > > SetHandler perl-script > PerlResponseHandler ModPerl::Registry > PerlOptions +ParseHeaders > Options +ExecCGI > > > > #-------------------MyApache-FileLogger------------------------------------- > > SetHandler perl-script > PerlResponseHandler ModPerl::Registry > PerlLogHandler MyApache::FileLogger > Options +ExecCGI > As you have figured out by trial and error, if you wanted the logger to work for everything you just needed to add: > > PerlLogHandler MyApache::FileLogger > what you originally did, is assigned ModPerl::Registry to serve everything on the server, but fed it with html and images, forgetting that it requires a Perl diet. Since you've repeated many times that you are a newbie, I'll forgive you ;) But if you weren't a newbie and you didn't remember to check the error_log file, I'd say: "shame on you" :) As the latter would have revealed the problem right away, from the first test. Notice that my example configuration is correct since it demonstrates the use of a logger for a particular sub-section of the site that *happens* to be served by the ModPerl::Registry handler. Perhaps that example needs some extra notes to avoid this kind of confusion in the future. I'll add a note. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com