Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Mike Tonks
I am using CAP::Routes and it works very well for me. First off, I am using ScriptAlias to map the url and hide the script name it the url: So I have a few lines in my /etc/apache2/sites-available/app virtual host file: ScriptAlias /contacts /var/www/app/cgi-bin/contacts.cgi

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
On Thu, Mar 4, 2010 at 3:33 AM, Mike Tonks fluffym...@googlemail.com wrote: I am using CAP::Routes and it works very well for me. Thanks for the report. This is good to know, because this proves I must be doing something wrong, even though I can't figure out what. I am not using ScriptAlias,

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Brad Van Sickle
Tangential discussion on this... but what is the value in using dispatching modules like CAP::Routes and CGI::Application::Dispatch? I've looked at them in the past, and I've heard it mentioned many times that they are wonderfully useful.. but I've never fully understood why. Currently I'm

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Clayton Scott
On Thu, Mar 4, 2010 at 9:25 AM, Brad Van Sickle bvansick...@gmail.com wrote: Tangential discussion on this... but what is the value in using dispatching modules like CAP::Routes and CGI::Application::Dispatch? The big advantage for me when I decided to use CAP::Routes for a project was because

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
On Thu, Mar 4, 2010 at 8:25 AM, Brad Van Sickle bvansick...@gmail.com wrote: Tangential discussion on this... but what is the value in using dispatching modules like CAP::Routes and CGI::Application::Dispatch? I've looked at them in the past, and I've heard it mentioned many times that they

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Brad Van Sickle
All of that can be done with mod rewrite. A (sanitized) example of a rewrite/proxy rule I have working in an existing application RewriteRule Runmode/([0-9]+)/([a-zA-Z0-9]+) http://server/perl/instance.pl?rm=RunmodePARAM1=$1PARAM2=$2 [P,L] Which takes the URI Runmode/20/Data and turns it into

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
Brad, On Thu, Mar 4, 2010 at 9:04 AM, Brad Van Sickle bvansick...@gmail.com wrote: All of that can be done with mod rewrite.  A (sanitized) example of a rewrite/proxy rule I have working in an existing application RewriteRule Runmode/([0-9]+)/([a-zA-Z0-9]+)

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
On Thu, Mar 4, 2010 at 9:26 AM, Clayton Scott clayton.sc...@gmail.com wrote: On Thu, Mar 4, 2010 at 10:04 AM, Brad Van Sickle bvansick...@gmail.com wrote: All of that can be done with mod rewrite.  A (sanitized) example of a rewrite/proxy rule I have working in an existing application

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Michael Peters
On 03/04/2010 10:04 AM, Brad Van Sickle wrote: Maybe CGI::Application::Dispatch or CAP::Routes is a better/more powerful way to do this... but I don't see how. Which is why I'm asking. There are pros and cons to both ways (using mod_rewrite or Dispatch) and I frequently use them both, even

[cgiapp] CGI::Application::Plugin::Authorization, LDAP and Microsoft AD

2010-03-04 Thread Brandon Wood
I have built a site that uses CGI::Application::Plugin::Authentication using the Authen::Simple::LDAP driver against a Microsoft AD server. __PACKAGE__-authen-config( DRIVER = [ 'Authen::Simple::LDAP', host = 'ldap://...com:389',

[cgiapp] Security, Authentication and Authorization for CGI::App

2010-03-04 Thread Nicholas Bamber
Brad, If you have any feedback on CGI::Application::Plugin::Authentication I would appreciate it. My priorities for it are (not in any order): 1.) Getting it to run under taint mode 2.) And making the HTML more configurable 3.) Getting test coverage up. 4.) Keeping test failures down

Re: [cgiapp] Dancer

2010-03-04 Thread Mark Stosberg
On Tue, 2 Mar 2010 13:38:15 -0500 Mark Stosberg m...@summersault.com wrote: On Thu, 25 Feb 2010 17:51:40 -0600 P Kishor punk.k...@gmail.com wrote: following Mark Stosberg's email about PSGI, I decided to poke around a bit more, and landed up with Dancer. Color me very impressed.