Re: mp1 internal_redirect question

2007-12-07 Thread Perrin Harkins
On Dec 7, 2007 5:01 PM, Ronald Dai. <[EMAIL PROTECTED]> wrote: > Because it is somehting like > > eval{ do something; warn " warning message"} or die "dying message"; > > Neither warning message nor dying message was logged. That could mean that it crashed before the warning, or it could mean som

RE: mp1 internal_redirect question

2007-12-07 Thread Ronald Dai.
7 4:57 PM To: Ronald Dai. Cc: modperl@perl.apache.org Subject: Re: mp1 internal_redirect question I think you've responded to the wrong thread here... On Dec 7, 2007 4:49 PM, Ronald Dai. <[EMAIL PROTECTED]> wrote: > For a > eval{} or die "" block if the message of die wa

Re: mp1 internal_redirect question

2007-12-07 Thread Perrin Harkins
I think you've responded to the wrong thread here... On Dec 7, 2007 4:49 PM, Ronald Dai. <[EMAIL PROTECTED]> wrote: > For a > eval{} or die "" block if the message of die was not logged, I guess the > process got aborted within the eval block That's a pretty big guess. How do you know it did

RE: mp1 internal_redirect question

2007-12-07 Thread Ronald Dai.
n the eval block Thanks Ron From: [EMAIL PROTECTED] on behalf of Perrin Harkins Sent: Fri 12/7/2007 4:45 PM To: Silent Cc: modperl@perl.apache.org Subject: Re: mp1 internal_redirect question On Dec 6, 2007 8:36 PM, Silent <[EMAIL PROTECTED]&g

Re: mp1 internal_redirect question

2007-12-07 Thread Perrin Harkins
On Dec 6, 2007 8:36 PM, Silent <[EMAIL PROTECTED]> wrote: > # my mod_rerite.conf > # section 1 > RewriteEngine On > RewriteCond %{HTTP_USER_AGENT} Firefox [OR] > RewriteCond %{HTTP_USER_AGENT} lwp-request [OR] > RewriteRule ^/mp3/aaa\.mp3$/mp3/aaa.html > > # section 2 > RewriteCond %{H

Re: mp1 internal_redirect question

2007-12-06 Thread Silent
# my mod_rerite.conf # section 1 RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Firefox [OR] RewriteCond %{HTTP_USER_AGENT} lwp-request [OR] RewriteRule ^/mp3/aaa\.mp3$/mp3/aaa.html # section 2 RewriteCond %{HTTP_USER_AGENT} MSIE RewriteRule /fake.html /mp3/bbb.mp3 # EOF in

Re: mp1 internal_redirect question

2007-12-06 Thread Perrin Harkins
On Dec 5, 2007 11:15 PM, Silent <[EMAIL PROTECTED]> wrote: > I tryed mod_rewrite to redirect base on user_agent, it works very fine! > but I still want to know how to do it in mod_perl. Can you tell us what you did in mod_rewrite? Then we can show you an equivalent for mod_perl. - Perrin

Re: mp1 internal_redirect question

2007-12-06 Thread Perrin Harkins
On Dec 1, 2007 11:42 PM, Silent <[EMAIL PROTECTED]> wrote: > and I have another server has mod_perl-1.99_09 with apache > httpd-2.0.46-44.ent on redhat es3 update4 > I want to know: which version mod_perl document is related to mod_perl 1.99, > 1.x or 2.x ? 1.99 is a pre-release version of mod_per

Re: mp1 internal_redirect question

2007-12-05 Thread Silent
I tryed mod_rewrite to redirect base on user_agent, it works very fine! but I still want to know how to do it in mod_perl. 2007/12/2, Silent <[EMAIL PROTECTED]>: > > Hi, > > I want to develop a script like this: > > the script randomly send a html page or mp3 file, but I met some problems, > >

Re: mp1 internal_redirect question

2007-12-01 Thread Silent
> > question 2: > with mod_perl2, internal_redirect seems can access system file, such as > /etc/*, but mod_perl1 seems can only access files under apache documentroot > right ? > sorry, the second question not correct, the mod_perl2 "sendfile" can access system file, and I have another server ha