A couple years ago, Jonathan seemed to think this behavior was a bug and
alluded to a fix in
trunk: https://groups.google.com/d/msg/web2py/elnV_6Ntw3E/KWNlpoJfpWAJ.
Anthony
On Wednesday, October 2, 2013 7:23:44 PM UTC-4, Massimo Di Pierro wrote:
>
> You only prevent this from within the apps
>
> if request.env.http_host != '....': redirect(....)
>
> or from the Apache config file.
>
> On Wednesday, 2 October 2013 06:55:51 UTC-5, Andriy wrote:
>>
>> I`ve successfully connected 2 domains to my apache-web2py configuration
>> using routes.py. But I have one problem - all apps are accessible from
>> one-another if I add app-name to domain URL.
>> For example, I defined:
>> domains = {
>> 'domain1.com': 'app1',
>> 'domain2.com': 'app2'}
>>
>> www.domain1.com/app2 - opens app2. But it should not. It should go to
>> function with name "app2" in app1/controllers/default.py or to 404 error.
>> www.domain2.com/app1 - opens app1.
>>
>> Actually www.domain1.com/app1 also opens itself.
>>
>> How can I prevent this?
>>
>>
--
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/groups/opt_out.