I understand. thank you very much for the answer.
I guess I will add a global variable to set the main domain and use it in
those cases.

2015-03-01 16:37 GMT-03:00 Niphlod <[email protected]>:

> uhm....... the host is different from the hostname and from the "domain".
> Usually, the pretty thing about the request environment is that there is a
> "Host" header sent by client that indicates which "domain" it has been
> accessed. This makes your application unaware that is running on a
> particular domain, whilst keep it working without issues.
> Since the scheduler can run on any hostname (also in ones that don't
> usually have a webserver), we can't known what hostname may have been
> requested, and that host header is never coming in to signal what is the
> proper hostname to use.
>
> tl;dr:  use URL(......., host='www.domain.com') instead of URL(....,
> host=True)
>
>
>
>  --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/G34QiEhOi0s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.

Reply via email to