The Apache options is better because allows you to also map static files. In my examples web2py was serving static files and that is not a production setting. The apache routes config is more portable (does not depend on web server).
Massimo On Oct 18, 9:07 pm, VP <vtp2...@gmail.com> wrote: > The way I did this is through Apache, by adding > > ServerName domain.com > ServerAlias *.domain.com > > to the web2py configuration section in site-enabled/000-default > > Which one is more preferable? pros and cons? > > Thanks.