No need to start to instances of web2py. If you use Jonathan's new routers
syntax available in trunk you can put something like this in routes.py:
routers = dict(
BASE = dict(
domains = {
'www.domain.com:80 <http://domain.com/>' : 'myappname',
'secure.domain.com:443' : 'myappname',
}
),
)
Have a look at the documentation in router.example.py. It's very powerful
and much more straightforward than the old routes.
On 3 February 2011 21:28, Martin Weissenboeck <[email protected]> wrote:
> Hi,
>
> I want to use one server with two addresses, e.g.
> http://www.mydomain.org:80 and https://secure.mydomain.org:443
>
> What shall I do:
> - start two instances of web2py
> - or use URL-rewrite?
>
> Regards,
> Martin
>
>