Re: [cgiapp] CGI::Application:Dispatch problem

2012-03-14 Thread Michael Peters
On 03/14/2012 07:43 AM, Jiří Pavlovský wrote:

 So there must be something I'm not getting about the interaction between
 dispatch/apache/mod-perl

Dispatch uses the PATH_INFO environment variable. And unfortunately 
sometimes some weird things can interact with Apache to change what 
value it sets for this. What is your PATH_INFO?

-- 
Michael Peters
Plus Three, LP


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] CGI::Application:Dispatch problem

2012-03-14 Thread Michael Peters
On 03/14/2012 10:56 AM, Jiří Pavlovský wrote:

 If I add dispatch_path to my dispatch module

No need to do that just yet. We're trying to figure out what 
CGI::Application::Dispatch thinks the path_info is, not change it.

 and print $ENV{PATH_INFO}
 from there it has the first element cut off.
 Is that what you meant?

Without doing anything with dispatch_path() (which overrides what 
CGI::Application::Dispatch does by default) what does $ENV{PATH_INFO} 
say? If it's not what you think, then somehow Apache isn't setting it to 
what you think it should be.

This could be because of a lot of different things (like which 
directories are on the filesystem, how apache is configured, etc).

-- 
Michael Peters
Plus Three, LP


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####