http_host is the same as server name. It does not say is whether it is
http/https and what the port is. Plus web2py may be behind a proxy.
there is no reliable way to determine the url and any technique you
use can be spoofed by visitors.
it is must easier to declare it.
request/my_url='
https://mydomain.com:80'