If you are using Apache, you can create rules on apache default configuration. to redirect based on domain.
2010/9/30 Albert Abril <[email protected]> > I'm seeing about this problem too. > I have a web2py install at webfaction. > And three different domains. > > I have only one web2py installation, and I wish that depending on the url, > serve an app or other. > (because If I have two instances of web2py, it exceeds the memory of my > hosting plan). > > I will try that solution. > Thanks. > > On Thu, Sep 30, 2010 at 8:14 PM, mdipierro <[email protected]>wrote: > >> routes does not support this but you can do things like >> >> app=request.env.http_host.split('.')[0] >> if not app=request.application: redirect(...) >> >> On Sep 30, 11:57 am, Tyler Laing <[email protected]> wrote: >> > I have two URLs, novelite.ca and noverotic.ca and I'm trying to figure >> > out how to make web2py serve a different application depending on the >> > base url. >> > >> > Does this involve routes.py? >> > > -- http://rochacbruno.com.br

