any ideas? anyone?
On Sep 22, 12:48 pm, Jon Romero <darks...@gmail.com> wrote:
> Thanks.
> I was looking the examples from the old book (thinking that there
> won't be any major changes) but I was wrong.
> This is in the old book:
>
> routes_in=(
> ('140.192.\d+.\d+:.*','/welcome/default/index'),
> )
>
> I thought that doing that:
> routes_in=(
> ('http://mydomain.com:.*','/myapp/default/index'),
> )
>
> would work (I also tried escaping the domain name but that didn't work
> either).
>
> Then I tried with the way it is described in the new book and didn't
> work again (I am pretty sure I am doing something wrong).
> routes_in=(
> ('*:http://mydomain.comPOST / ', '/myapp/default/index'),
> )
>
> Why the old one (which I find more appropriate for my purposes) didn't
> work? And how can I make it work?
>
> Thanks
>
> On Sep 22, 12:05 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > PS: Does routes_in accepts domain names? I tried a little hack but
> > > didn't work
>
> > yes.
> > you can find an example on top of page 120. Works as long as as web2py
> > finds the requested host name in the http header.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---