I was wondering how to also incorporate routing any asp/jsp/php requests to 
the jammer app in this example?

Can you add it to routes_in? eg-

routes_in = (
  ('/admin/$anything', '/admin/$anything'),
  ('/$anything', '/init/$anything'),
 ('.*.(php|PHP|asp|ASP|jsp|JSP)','jammer/default/jam'),
)

Is this correct?



On Monday, March 1, 2010 at 11:46:31 PM UTC-8, Elam Watkins wrote:
>
> Thanks all, it's working now.  I did what mdipierro suggested.
>
> On Mar 1, 6:20 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > oops. Try this
> >
> > routes_in = (
> >   ('/admin/$anything', '/admin/$anything'),
> >   ('/$anything', '/init/$anything'),
> > )
> > routes_out = (('/init/$anything', '/$anything'),)
> >
> > On Mar 1, 8:18 am, Mengu <whalb...@gmail.com> wrote:
> >
> >
> >
> > > massimo, this breaks admin. :)
> >
> > > On 1 Mart, 14:53, mdipierro <mdipie...@cs.depaul.edu> wrote:
> >
> > > > or the new simpler way
> >
> > > > routes_in = (('/$anything', '/init/$anything'),)
> > > > routes_out = (('/init/$anything', '/$anything'),)
> >
> > > > On Mar 1, 5:51 am, Álvaro Justen [Turicas] <alvarojus...@gmail.com>
> > > > wrote:
> >
> > > > > On Mon, Mar 1, 2010 at 03:47, Elam Watkins <elamwatk...@gmail.com> 
> wrote:
> > > > > > I downloaded web2py version 1.75.5. I then renamed the welcome
> > > > > > application to init.
> >
> > > > > > I want to remove the application prefix from the application's 
> URLs
> > > > > > because I want to only expose one application.  I created a 
> routes.py
> > > > > > in the web2py folder and tried the following:
> >
> > > > > > #---------------------------------------------
> > > > > > routes_in = (
> > > > > >  ('/testme', '/init/default/index'),
> > > > > > )
> > > > > > routes_out = (
> > > > > >  ('/init/default/index', '/testme'),
> > > > > > )
> > > > > > #---------------------------------------------
> >
> > > > > > It worked fine.
> >
> > > > > > I then tried
> >
> > > > > > #---------------------------------------------
> > > > > > routes_in = (
> > > > > >  ('/(?P<any>.*)', '/init/   any>'),
> > > > > > )
> > > > > > routes_out = (
> > > > > >  ('/init/(?P<any>.*)', '/   any>'),
> > > > > > )
> > > > > > #---------------------------------------------
> >
> > > > > There is some typo in the online book. You should use "\g". See [1]
> > > > > for one example (/docs).
> >
> > > > > > and this:
> >
> > > > > > #---------------------------------------------
> > > > > > routes_in = (
> > > > > >  ('/$c/$f', '/init/$c/$f'),
> > > > > > )
> >
> > > > > > routes_out = (
> > > > > >  ('/init/$c/$f', '/$c/$f'),
> > > > > > )
> > > > > > #---------------------------------------------
> >
> > > > > Try this:
> >
> > > > > routes_in = (
> > > > >   ('/', '/init'),
> > > > >   ('/$c/?', '/init/$c'),
> > > > >   ('/$c/$f', '/init/$c/$f'),
> > > > > )
> >
> > > > > routes_out = (
> > > > >   ('/init/$c/$f', '/$c/$f'),
> > > > > )
> >
> > > > > [1]http://web2py.com/AlterEgo/default/show/67
> >
> > > > > > Neither worked.  This is straight from the book:
> > > > > >http://web2py.com/book/default/section/4/15
> >
> > > > > > --
> > > > > > You received this message because you are subscribed to the 
> Google Groups "web2py-users" group.
> > > > > > To post to this group, send email to web...@googlegroups.com 
> <javascript:>.
> > > > > > To unsubscribe from this group, send email to 
> web2py+un...@googlegroups.com <javascript:>.
> > > > > > For more options, visit this group athttp://
> groups.google.com/group/web2py?hl=en.
> >
> > > > > --
> > > > > Álvaro Justen - Turicas
> > > > >  http://blog.justen.eng.br/
> > > > >  21 9898-0141- Hide quoted text -
> >
> > - Show quoted text -
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to