[web2py] Re: Subdomain Duplicates Content

2011-06-04 Thread Francisco Costa
Are this changes in the new version? On May 28, 3:50 pm, Jonathan Lundell jlund...@pobox.com wrote: There's support for exclusive domain mapping enforcement in the trunk now. It'd be good if someone could try it out, because the unit tests I was able to come up with aren't all that close to

Re: [web2py] Re: Subdomain Duplicates Content

2011-06-04 Thread Jonathan Lundell
On Jun 4, 2011, at 9:21 AM, Francisco Costa wrote: Are this changes in the new version? Yes. On May 28, 3:50 pm, Jonathan Lundell jlund...@pobox.com wrote: There's support for exclusive domain mapping enforcement in the trunk now. It'd be good if someone could try it out, because the

Re: [web2py] Re: Subdomain Duplicates Content

2011-06-04 Thread danto
for the record: to solve the problem with google robots you can set robot.txt to allow/deny other apps.

[web2py] Re: Subdomain Duplicates Content

2011-05-26 Thread Francisco Costa
any update on this? On May 24, 2:36 am, Jonathan Lundell jlund...@pobox.com wrote: On May 23, 2011, at 8:06 PM, Bruno Rocha wrote: I guess Francisco wants to explain a different behaviour. Having 2 or more apps on the same web2py instance, web2py should prevent the app to be requested

Re: [web2py] Re: Subdomain Duplicates Content

2011-05-26 Thread Jonathan Lundell
On May 26, 2011, at 2:08 AM, Francisco Costa wrote: any update on this? No, I just got back from a trip and haven't looked at it. Can we discuss what behavior we want (and can get)? The easiest option: a flag to forbid a cross-domain URL call. URL would raise an exception if you try to do

[web2py] Re: Subdomain Duplicates Content

2011-05-26 Thread Francisco Costa
The easiest option: a flag to forbid a cross-domain URL call. URL would raise an exception if you try to do that. (Actually, the rewrite logic would do that.) That option would be great!

[web2py] Re: Subdomain Duplicates Content

2011-05-24 Thread Francisco Costa
Sorry if I didn't explain this well... Imagine a scenario of a web company.. The company website is in the main app The clients sites are in different apps like client1, client2, etc In routes.py you redirect the domain to the respective app (ex. client1.com - client1) The problem is that from

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
is this a bug? On May 23, 6:15 pm, Francisco Costa m...@franciscocosta.com wrote: Hello, I have a main app and a blog app My routes.py are like this: routers = dict(     BASE = dict(         default_application = 'main',         default_controller = 'default',         default_function =

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread pbreit
Does your URL() look like this: URL('main', 'test', 'index') ? http://web2py.com/book/default/chapter/04#URL

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
but this shouldn't open http://rochacbruno.com.br/init/default/sobre right? On May 23, 8:03 pm, Bruno Rocha rochacbr...@gmail.com wrote: The same happens for, me, and I see on;y one problem. I have 2 apps inside a web2py instance, with 2 different domains as follows. init

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
Yes! I've tried URL(host = 'domain.com', a = 'main', c = 'test', f = 'index') and it generates the link correctly. The thing is that I have a lots of URLS() and I didn't want to change them all But the bug is still there. If I manually enter http://blog.domain.com/main/test/index the page opens

[web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Francisco Costa
The URL calling is fine.. the problem is how web2py manages different apps from different domains/subdomains I really believe that they should be improved! On May 23, 11:02 pm, Jonathan Lundell jlund...@pobox.com wrote: What's your URL() call for the example below? Have you looked at the HTML?

Re: [web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Jonathan Lundell
On May 23, 2011, at 6:10 PM, Francisco Costa wrote: The URL calling is fine.. the problem is how web2py manages different apps from different domains/subdomains I really believe that they should be improved! web2py (URL) isn't generating a domain *at all* in the URL unless you explicitly

Re: [web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Bruno Rocha
I guess Francisco wants to explain a different behaviour. Having 2 or more apps on the same web2py instance, web2py should prevent the app to be requested by other domain than its own domain. www.app1.com - /app1 #allowed www.app2.com - /app2 #allowed www.app1.com/app2 - /app2 # denied

Re: [web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Jonathan Lundell
On May 23, 2011, at 8:06 PM, Bruno Rocha wrote: I guess Francisco wants to explain a different behaviour. Having 2 or more apps on the same web2py instance, web2py should prevent the app to be requested by other domain than its own domain. www.app1.com - /app1 #allowed www.app2.com -

Re: [web2py] Re: Subdomain Duplicates Content

2011-05-23 Thread Bruno Rocha
I dont think it is necessary to change URL behaviour, just include the allow/deny lists to the router. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Mon, May 23, 2011 at 10:36 PM, Jonathan Lundell jlund...@pobox.comwrote: On May 23, 2011, at 8:06 PM, Bruno Rocha wrote: I