Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to modify base path in Plack::Builder
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Zbigniew Łukasiak  
View profile  
 More options Nov 1 2011, 5:24 am
From: Zbigniew Łukasiak <zzb...@gmail.com>
Date: Tue, 1 Nov 2011 10:24:05 +0100
Local: Tues, Nov 1 2011 5:24 am
Subject: Re: How to modify base path in Plack::Builder
2011/10/31 Mikolaj Kucharski <miko...@kucharski.name>:

> On Mon, Oct 31, 2011 at 07:07:52PM +0100, Zbigniew Łukasiak wrote:
>>     $env->{PATH_INFO} =~ s{^/plackup}{};

> It's actually other way around s|^|/plackup| as Apache removes the
> prefix and I want to add it back.

> Also, AFAICS and what Tatsuhiko pointed out in other email I should
> modify SCRIPT_NAME and (maybe) REQUEST_URI.

Isn't it dual?  Shouldn't it be that

REQUEST_URI == SCRIPT_NAME . PATH_INFO

and that if you add something to SCRIPT_NAME - then you you also need
to remove it from PATH_INFO?  Or I guess you can add to REQUEST_URI -
but REQUEST_URI is usually the most reliable.

--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.