$r-prev is always defined

2002-09-08 Thread Jindo

Hello,

According to docs, $r-prev returns undef unless there is an internal
redirect.  But to 
my surprises, $r-prev is always defined, severely breaking down the
code/flow logic 
of my scripts.

Here is what I have in /Index.cgi (My browser defaults to that page) for
debugging
$r-log_error($r-prev()-uri());
$r-log_error($r-uri());

Log shows:
[Sat Sep  7 16:35:27 2002] [error] /Index.cgi
[Sat Sep  7 16:35:27 2002] [error] /Index.cgi

$r-prev() DID RETURN undef in the past.  This problem kicked in after I
changed my
server environment which now goes:

RedHat Linux 7.1 (with custom built kernel 2.4.18 SMP)
Perl 5.6.1
Apache 1.3.26 (upgraded from Apache 1.3.24)
mod_perl 1.27 (upgraded from mod_perl 1.26)
mod_gzip 1.3.19a

Has anyone experienced such weird behaviour or is there anything I need
to watch out to correct this problem?

Yours,

Jindo




mod_perl and DAV integration

2002-09-08 Thread Eric Flynn



Has 
anyonedevised a method(using mod_dav or otherwise)for writing 
perl handlerstosatisfyDAV requests? All the solutions I 
have found so far either do not give enough control over the response formation 
or requre the use of C handlers.

Thanks,

Eric
***Eric 
Flynn[EMAIL PROTECTED]415-664-3631*** 




Re: Apache::Util::ht_time outputs dates in local language

2002-09-08 Thread pascal barbedor



 This function wraps an apache function (apr_ht_time()) which in
 turn uses strftime() to do the conversion.

 Try changing your LC_TIME or LANG variable before you start your
 web server.  Perhaps start by setting LANG=C and go from there.

 Consult the strftime() man page for details on the interaction
 between the environment variables and the time output.

on win XP
I tried no locale  in the perl script
and LANG=C in ENV before starting Apache

since none worked I just wrote a little function to get correct date in
english
thanks
pascal







Re: mod_perl and DAV integration

2002-09-08 Thread Taisuke Yamada


 Has anyone devised a method (using mod_dav or otherwise) for writing perl
 handlers to satisfy DAV requests?  All the solutions I have found so far
 either do not give enough control over the response formation or requre the
 use of C handlers.

Are you looking for complete DAV solution or some testbed that you
can modify for experimental purpose?

I never claims this to be compliant DAV implementation, but I once
wrote something you might be able to play with:

  http://webdav.todo.gr.jp/download/experimental/Apache-DAV-skelton2.tar.gz

It's XML handling is not even a kludge, and many things are not
completed, but maybe simple enough to modify and adapt for your need.

I wrote it to test out behavior of various DAV clients, and also to
experiment on separation of DAV frontend and file repository backend,
so I can use backend to write DAV-interoperable CGI later on.

--
Taisuke Yamada [EMAIL PROTECTED]
PGP fingerprint = 6B 57 1B ED 65 4C 7D AE  57 1B 49 A7 F7 C8 23 46



internal server error

2002-09-08 Thread cheng



HI:Currently i using win98 and i install my 
perl.exe in C:\perl,i have changed the path to C:\perl\bin under 
httpd(server signature on) but when i test this 
localhost/asp/printenv.html,the page come out Internal Server Error,but all 
the html page is fine.Any idea?thanks,have a nice 
day.


[ANNOUNCE] OpenInteract 1.51 released

2002-09-08 Thread Chris Winters

A new version (1.51) of OpenInteract has been released to
CPAN. OpenInteract is an extensible web application server built on
Apache, mod_perl, the Template Toolkit and SPOPS object persistence.

This version adds caching for the data generated by content
handlers. This is in addition to the caching already provided by the
Template Toolkit. Since this is retrofitting a feature planned for the
next version into the current one, enabling caching is not a transparent
change. But it's not a difficult one either :-)

Source (also via CPAN):
 http://prdownloads.sourceforge.net/openinteract/OpenInteract-1.51.tar.gz?download

Detailed changes:
 http://sourceforge.net/project/shownotes.php?release_id=109677

Thanks!

Chris

-- 
Chris Winters ([EMAIL PROTECTED])
Building enterprise-capable snack solutions since 1988.




Re: internal server error

2002-09-08 Thread Randy Kobes

On Mon, 9 Sep 2002, cheng wrote:

 HI:
 Currently i using win98 and i install my perl.exe in C:\perl,i have 
 changed the path to C:\perl\bin under httpd(server signature on) but 
 when i test this localhost/asp/printenv.html,the page come out Internal 
 Server Error,but all the html page is fine.Any idea?
 thanks,have a nice day.

Do the entries in the error log suggest anything? If this looks
like a specific Apache::ASP error, you might want to try
http://www.apache-asp.org/, which as well as docs, has links to
the apache-asp mailing list archives.

-- 
best regards,
randy kobes




Dual Apache setups

2002-09-08 Thread Jason Czerak

I'm messing around with apache 2.0 and modperl 1.99 and Haven't been
able to come across any docs that state that I would or would not need a
dual apache setup for high load sites.

I wish to have apache 2.0 threaded. 

currently my setup is Apache 1.3.26 with mod_ssl and mod_proxy and
mod_rewrite and all other unnecessary modules not compiled in. and for
dynamic requests, it proxys them to the back end as suggested by the
mod_perl guide, very please with this performance and memory usage. Was
wondering what is the statues of such a configuration with apache 2.x.x.

--
Jason Czerak