[cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Alexandre Jousset
Hello, I'm new to the list, to C::A too and I use C::A::Dispatch. My problem is the following : When I get the page localhost/lunae or localhost/lunae/home, no pb, it says It works ! 2. But when I try to get the page localhost/lunae/home/mode1 (or mode2 or mode3 or

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Alexandre Jousset
I respond to myself to clarify some things... I patched the C::A::Dispatch handler function to print the $path_info variable (got with $r-path_info()) to a file in /tmp. Apparently for the URL localhost/lunae/home/mode3, $path_info is set to '/mode3' instead of '/home/mode3'. So

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Michael Peters
Alexandre Jousset wrote: I respond to myself to clarify some things... I patched the C::A::Dispatch handler function to print the $path_info variable (got with $r-path_info()) to a file in /tmp. Apparently for the URL localhost/lunae/home/mode3, $path_info is set to '/mode3' instead of

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Michael Peters
Michael Peters wrote: Just some ideas. Maybe there's something better than PATH_INFO that Dispatch can use. Any ideas? It might be as simple as stripping the Location off of the beginning of the path and using that. It was my understanding that that's what PATH_INFO was, but maybe not. --

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Michael Peters
Michael Peters wrote: Alexandre Jousset wrote: I respond to myself to clarify some things... I patched the C::A::Dispatch handler function to print the $path_info variable (got with $r-path_info()) to a file in /tmp. Apparently for the URL localhost/lunae/home/mode3, $path_info is set to

[cgiapp] CAP::LogDispatch questions

2005-01-28 Thread William McKee
Thanks to Cees' plugin, I'm starting to look at converting from using Log::Log4perl to Log::Dispatch to handle logging in my applications. The primary reason for the switch is that Log::Log4perl is a singleton which must be configured globally for all applications. This improves performance in a

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Alexandre Jousset
Michael Peters wrote: Another thing you might look at is to see if you have any other locations that start off with '/lunae' since this might also influence the PATH_INFO even if it doesn't process the response. Sorry to keep responding to myself, but here is another idea. From the Eagle book:

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Michael Peters
Alexandre Jousset wrote: Michael Peters wrote: I checked and I have neither 'home' in document root nor locations that starts with /lunae. I tried to change Home.pm with Test.pm and getting /lunae/test/mode1 also give me a $path_info of /mode3... :-( Maybe you could bring this up on the

Re: [cgiapp] Problem recognizing modes in URLs

2005-01-28 Thread Alexandre Jousset
Michael Peters wrote: Maybe you could bring this up on the mod_perl list. It seems like a mod_perl problem since C::A::Dispatch is just using the $r-path_info() that mod_perl gives it. I found the cause of the problem... In the document root I had a 'lunae' directory. Deleting it gave me the