Attempting to write a first mojolicious app here so I read this https://github.com/kraih/mojo/wiki/Apache-deployment
and this http://mojolicio.us/perldoc/Mojolicious/Guides/Routing And concluded that this should work: <VirtualHost *:80> ServerName foo.bar # SetEnv htgroup /var/www/.htgroup DocumentRoot /var/www/foo.bar # DocumentRoot /usr/lib/cgi-bin AddHandler cgi-script .cgi .pl Options +ExecCGI ErrorLog ${APACHE_LOG_DIR}/my-error.log ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> Options +ExecCGI </Directory> LogLevel warn CustomLog ${APACHE_LOG_DIR}/my-access.log combined RewriteEngine On RewriteCond {REQUEST_URI} !^/cgi-bin RewriteRule ^(.*) /cgi-bin/foo.cgi [PT] </VirtualHost> And sure enough all requests that dont begin with /cgi-bin are mapped to cgi-bin/foo.cgi foo.cgi contains this> use Mojolicious::Lite; get '/login' => { text => ( 'login time' ) } ; get '/' => {text => ( 'Hello World! REQUEST_URI = ' . $ENV{'REQUEST_URI'} ) }; app->start; But requests for http://foo.bar/login Hello World! REQUEST_URI = /login How does one build a route for /login ? Robin -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
