It depends. You can do
http://web2py.com/book/default/chapter/04?search=routes#Pattern-Based-System
routes_in = (
('140\.191\.\d+\.\d+:https://www.web2py.com:POST /(?P<any>.*)\.php',
'/test/default/index?vars=\g<any>'),
)
You can have regex in pattern for hostname
On May 9, 3:45 pm, Dan <[email protected]> wrote:
> Hi,
>
> is there any way to get the current domain in routes.py? The request
> object is not defined in routes.py.
>
> The reason for this is that I want to build some links over https with
> routes_out. Since you have to give a full URL as the second parameter
> I need to prepend the domain.
>
> Thanks a lot for any help.