On Tue, 3 Jun 2014, [email protected] wrote: > 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 ?
Did you try 'login' rather than '/login'? Printing $REQUEST_URI isn't useful to your troubleshooting, since it's not part of the COMMON GATEWAY INTERFACE and isn't used by Mojolicious for routing. Try looking at PATH_INFO and SCRIPT_NAME if you still have problems. -- 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.
