On Tuesday, May 30, 2017 at 6:05:11 PM UTC-7, Dave S wrote:
>
>
>
> On Tuesday, May 30, 2017 at 5:09:18 PM UTC-7, Ron Chatterjee wrote:
>>
>> 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.
>>
>
> What do you mean "one domain in go daddy that I tied to python anywhere"?
> My guess: you are NOT using the godaddy hosting, but you ARE using godaddy 
> domain registration.
>
> 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',
>>       }
>>   ),)
>>
>>
>
> No, that shows only 1 domain (the path would be 
> [web2pydir]/applications/app/controllers/insecure.py
> and the same path to secure.py.
>
> The :80 and :443 are for port numbers (the usual http and https ports).
>
>  This may help:
> <URL:https://groups.google.com/d/msg/web2py/hCsVq-tWwG4/l81klFVXOacJ>
>
>
You may also want to review this post:
<URL:https://groups.google.com/d/msg/web2py/AZrMwWIqO0w/7C3K0XLTCAAJ>

/dps
 

-- 
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