J. Peng wrote:
At what cases should we return a DECLINED or a OK from a handler?
Depends on the request phase you are running under, and ultimately, it's
dictated by apache [1]
I saw the handler of PerlTransHandler returns a
Apache2::Const::DECLINED but dont know why.
In a nutshell, there a
J. Peng wrote:
At what cases should we return a DECLINED or a OK from a handler?
I saw the handler of PerlTransHandler returns a
Apache2::Const::DECLINED but dont know why.
see the introduction to part III here:
http://www.modperlcookbook.org/chapters.html
in general, trans handlers retur
Thanks to all. That really be helpful.
On Fri, Feb 29, 2008 at 11:26 AM, Geoffrey Young
<[EMAIL PROTECTED]> wrote:
> they usually
> alter the uri then let the default apache trans handler do the mapping.
btw, mapping uri to disk sources in apache2 was done in
MapToStorageHandler rather than Trans handler, is it?
On Fri 29 Feb 2008, J. Peng wrote:
> btw, mapping uri to disk sources in apache2 was done in
> MapToStorageHandler rather than Trans handler, is it?
The Trans handler's task is to decide which file on disk belongs to a certain
URI. So when the Trans handler is done $r->filename must not be empty.
On Fri, Feb 29, 2008 at 7:03 PM, Torsten Foertsch
<[EMAIL PROTECTED]> wrote:
>
> Example continued: The entry /var/www/a/b exists on disk either as file or as
> directory but /var/www/a/b/c does not. Then after MapToStorage $r->filename
> is /var/www/a/b and $r->path_info is /c/d/e.
>
Sorry I c
On Fri 29 Feb 2008, J. Peng wrote:
> On Fri, Feb 29, 2008 at 7:03 PM, Torsten Foertsch
>
> <[EMAIL PROTECTED]> wrote:
> > Example continued: The entry /var/www/a/b exists on disk either as file
> > or as directory but /var/www/a/b/c does not. Then after MapToStorage
> > $r->filename is /var/www/a/
Hi,
J. Peng wrote:
On Fri, Feb 29, 2008 at 7:03 PM, Torsten Foertsch
<[EMAIL PROTECTED]> wrote:
Example continued: The entry /var/www/a/b exists on disk either as file or as
directory but /var/www/a/b/c does not. Then after MapToStorage $r->filename
is /var/www/a/b and $r->path_info is
On Fri 29 Feb 2008, Raymond Wan wrote:
> It continues doing this,
> "walking [up] the hierarchy", until it finds a match.
Don't know what you mean by "up". AFAIK it walks in this order:
/
/var
/var/www
/var/www/a
/var/www/a/b
For me that would be "down", ;-)
Torsten
On Fri, Feb 29, 2008 at 8:13 PM, Raymond Wan <[EMAIL PROTECTED]> wrote:
> Say you have a news site like:
>
> http://example.com/archive/news/2008/02/29/index.html
>
> A user might request that, but it wouldn't make sense to have 365
> "index.html"'s every year (ok, 366 this year :-) ). Instead,
J. Peng wrote:
> On Fri, Feb 29, 2008 at 8:13 PM, Raymond Wan <[EMAIL PROTECTED]> wrote:
>> Say you have a news site like:
>>
>> http://example.com/archive/news/2008/02/29/index.html
>>
>> A user might request that, but it wouldn't make sense to have 365
>> "index.html"'s every year (ok, 366 thi
On Fri, Feb 29, 2008 at 9:52 PM, Raymond Wan <[EMAIL PROTECTED]> wrote:
> I think you'll
> pick it up in time and one starting point is to write some sample code
> and try things out...
>
I have written lots of modperl codes actually,:)
But I primarilly write with AccessHandler or ResponseHandle
J. Peng wrote:
Do you mean mod_rewrite for the trick?
yes with mod_rewrite people can rewrite:
http://example.com/archive/news/2008/02/29/index.html
to something like:
http://example.com/archive/news?object=/2008/02/29/index.html
so here /archive/news is filename and /2008/02/29/index.html is
e net
-Original Message-
From: J. Peng [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 9:12 AM
To: Raymond Wan
Cc: modperl@perl.apache.org
Subject: Re: return DECLINED or OK?
On Fri, Feb 29, 2008 at 9:52 PM, Raymond Wan <[EMAIL PROTECTED]>
wrote:
> I think you'll
>
Ronald Dai. wrote:
I learned what is RTFM here which is very interesting :)...I like the
Ubuntu Forums policy though...but I always think reading is helpful
to any developer...that's why I like both perl and java because I
think they are very well documented generously somewhere within my
reach
Wetherbee [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 3:49 PM
To: Ronald Dai.
Cc: J. Peng; Raymond Wan; modperl@perl.apache.org
Subject: Re: return DECLINED or OK?
Ronald Dai. wrote:
> I learned what is RTFM here which is very interesting :)...I like the
> Ubuntu Forums policy
Ronald Dai. wrote:
Actually RTFM would not be a problem for people from academic
background (meaning MS or PHD educated) at all since they have to do
it all the timebut for people with more team work background
these days, it might not be politically very correct...
I disagree. Granted, I
erbee [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 4:04 PM
To: Ronald Dai.
Cc: modperl@perl.apache.org
Subject: Re: return DECLINED or OK?
Ronald Dai. wrote:
> Actually RTFM would not be a problem for people from academic
> background (meaning MS or PHD educated) at all since th
"J. Peng" <[EMAIL PROTECTED]> writes:
> On Fri, Feb 29, 2008 at 7:03 PM, Torsten Foertsch
> <[EMAIL PROTECTED]> wrote:
>>
>> Example continued: The entry /var/www/a/b exists on disk either as file or
>> as
>> directory but /var/www/a/b/c does not. Then after MapToStorage $r->filename
>> is /va
Colin Wetherbee wrote:
Ronald Dai. wrote:
Actually RTFM would not be a problem for people from academic
background (meaning MS or PHD educated) at all since they have to do
it all the timebut for people with more team work background
these days, it might not be politically very correct...
perience without any MS or PHD...
Thanks
Ron
From: Raymond Wan [mailto:[EMAIL PROTECTED]
Sent: Fri 2/29/2008 9:36 PM
To: Colin Wetherbee
Cc: Ronald Dai.; modperl@perl.apache.org
Subject: Re: return DECLINED or OK? [off-topic]
Colin Wetherbee wrote:
> Ronald Dai. wro
21 matches
Mail list logo