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.

Reply via email to