http://www.perlmonks.org?node_id=960748


in reply to Re^2: Dancer + cgi
in thread Dancer + cgi

When you run a Dancer app as a CGI, you don't run your script that has 'dance' in it. You use the httpd.conf or .htaccess rewrite rules in the first section of Dancer::Deployment, which redirects all URLs through the dispatch.cgi (or dispatch.fcgi for FastCGI) that is created when you create your Dancer app with the 'dancer' program. That dispatch program takes the URLs and passes them to your routes, after which point it works like it'd work as a standalone server or using any other deployment method.

Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.