How do I set up routes.py for multiple domain?

Currently I have one domain in go daddy that I tied to python anywhere with 
routes.py as shown below and it works fine. When I go to www.domain1.com it 
gets routed to my_app in pythonanywhere. 

routers = dict(
  BASE  = dict(default_application='my_app'),
)


How I set it up for domain2.com, domain3.com etc?

I looked at chapter 4. It says, the following. Not sure if this is a way to 
host multiple domain and what 80 and 443 means? Thanks in advance. 

routers = dict(
  BASE  = dict(
      domains = {
          'domain.com:80'  : 'app/insecure',
          'domain.com:443' : 'app/secure',
      }
  ),)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to