(I have sent this mail from another address and it has not be received, so i re-send 
again)

Once i have installed the last windows version of modperl2, i try to transcript some
apache code of my httpd.conf into perl sections.

I have this block in my httpd.conf (i post two times)

-----------------------------------
<Location ~ ".*/log$">
        SetHandler perl-script
        PerlResponseHandler Blogum::UserLog
        Allow from all
        PerlOptions +ParseHeaders
</Location>
-----------------------------------
&lt;Location ~ &quot;.*/log$&quot;&gt;
SetHandler perl-script
PerlResponseHandler Blogum::UserLog
Allow from all
PerlOptions +ParseHeaders
&lt;/Location&gt;
-----------------------------------

and what i try now is this:
PerlModule Apache2
PerlModule Apache::PerlSections #(necessary? i've tried without)
PerlModule Apache::Status #(necessary? i've tried without)
-----------------------------------
<Perl >
$Location{'.*log$'} = {
        SetHandler => "perl-script",
        PerlResponseHandler => "Blogum::UserLog",
        PerlOptions => "+ParseHeaders",
        Allow => "from all",
        };
</Perl>
-----------------------------------
&lt;Perl &gt;
$Location{'.*log$'} = {
SetHandler =&gt; &quot;perl-script&quot;,
PerlResponseHandler =&gt; &quot;Blogum::UserLog&quot;,>
PerlOptions =&gt; &quot;+ParseHeaders&quot;,
Allow =&gt; &quot;from all&quot;,
};
&lt;/Perl&gt;
-----------------------------------

Server starts with no problem, but the usual function (interpret /log/ url) fails, it
simply put "that page does not exist".

What am i doing wrong??

Thanks.

Server:
________________________________________________________________________
Apache/2.0.48 (Win32) mod_perl/1.99_13-dev Perl/v5.8.2 Server at localhost Port 80

________________________________________________________________________
>apache.exe -V
Server version: Apache/2.0.48
Server built: Oct 29 2003 09:37:51
Server's Module Magic Number: 20020903:4
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/winnt"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/apache"
-D SUEXEC_BIN="/apache/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error.log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
________________________________________________________________________
>perl -V
Summary of my perl5 (revision 5 version 8 subversion 2) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPL
ICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf
-libpath:"F:\tools\Perl\lib\CORE" -machine:x86'
libpth=C:\PROGRA~1\MICROS~3\VC98\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32
lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsoc
k32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comd
lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -
libpath:"F:\tools\Perl\lib\CORE" -machine:x86'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_
CONTEXT PERL_IMPLICIT_SYS
Locally applied patches:
ActivePerl Build 808
21846 Configure gets d_u32align wrong
21739 [perl #24493] install.html not working
21737 Ooops. left an XXX comment in, and worse still it's a // comment
21735 utf8 keys now work for tied hashes
21734 Accessing unicode keys in tie hashes via hv_exists was broken
21733 ext/threads/t/problem.t
21732 Config::myconfig() fails under ithreads
21728 Update perlhist with 5.6.2
21723 Include 'SCCS' in the list of dir names ignored by installperl
21718 Empty subroutine as object method segfaults in 5.8.2 (sometimes)
21714 Fix bug #24380: assigning list with duplicated keys to a hash
21706 [perl #24460] [DOC PATCH] the begincheck program
21693 must copy changes from win32/makeifle.mk to wince/makefile.ce
21691 Update the list of pumpkings in perlhist.pod
21687 [PATCH 5.6.2-RC1 pod/perlhist.pod] Updated
21677 OS/2 docu
21676 Bug #24407: key for shared hash got stringified into wrong pool
21673 Be sure to use -fPIC not -fpic on Linux/SPARC
21672 extending the hash attack test
21671 Benchmark.pm cmpthese segfault
21662 'make minitest' fails for op/cproto and op/pat
21586 Comment that this 'optimisation' is actually a necessary fixup
21548 Sync with Pod::Perldoc 3.12
21540 Fix backward-compatibility issues in if.pm
Built under MSWin32
Compiled at Dec 9 2003 10:19:40
@INC:
F:/tools/Perl/lib
F:/tools/Perl/site/lib
-----

Ya.com ADSL:ˇPROMOCIÓN! Router 3Com Wireless 11g + 1 Mes + Alta ˇGratis! 
http://acceso.ya.com/adsl/256router/

Ven, vota a [EMAIL PROTECTED] más [EMAIL PROTECTED] y... ˇatrévete a ser uno de ellos! 
En http://guapos.yatv.com


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to