Let's say that I have application named app1 and I am hosting it on
www.app1.com domain. I would like application name not to be shown. If for
instance I have two controllers, ctr1 and ctr2, URL helper will always
generate addresses like www.app1.com/*app1*/ctr1/some_function and www.app1/
*app1*/ctr2/some_function and I would like to have something like
www.app1.com/ctr/some_function - URL without application name.
Second question is if I have two applications hosted on the same server
(app1 and app2, registered on www.app1.com and www.app2.com domains) I know
that if I setup routes.py something like domains = {'www.app1.com' :
'app1', 'www.app2.com' : 'app2'} then app1 will be shown on www.app1.com
and app2 will be shown on www.app2.com. However, that doesn't prevent the
user to type something like www.*app1*.com/*app2*/default/index and app2
will we shown on www.app1.com domain. Is there a way to prevent this or
each application must be hosted on separate server?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.