Here is the code in routes.py that got it working for me.
routers = dict(
# base router
BASE=dict(
default_application='welcome',
domains={'www.app1.com':'app1',
'www.app2.org':'app2'}
),
)
On Thu, Apr 11, 2013 at 8:07 AM, Cenk Yıldız <[email protected]> wrote:
> Hello,
>
> I'd like to do the same thing with you, but I did not totally understand
> what to do in routes.py. Seems like I should modify routes_in and
> routes_out? Did you manage?
>
> Cenk
>
> On Friday, February 8, 2013 8:31:36 PM UTC+1, Jim S wrote:
>>
>> Thanks Massimo. Since I'm wsgi illiterate I'll try it with routes.py.
>> My skills aren't much in this area but I'll give it a try and see what I
>> can come up with.
>>
>> -Jim
>>
>> On Friday, February 8, 2013 12:54:08 PM UTC-6, Massimo Di Pierro wrote:
>>>
>>> I just talked to them about this. If you have multiple web2py instances
>>> you can have multiple wsgi config files pointing different domains to the
>>> different apps. I do not like this solution very much.
>>>
>>> You can indeed use routes.
>>>
>>> Perhaps we can add a feature to web2py so that instead of using
>>> routes.py the relevant parameters is set in the wsgi config file to you can
>>> have multiple ones (for different domains) pointing to one of the same
>>> web2py instance but behaving differently.
>>>
>>> Massimo
>>>
>>> On Friday, 8 February 2013 07:30:11 UTC-6, Jim S wrote:
>>>>
>>>> Hi
>>>>
>>>> Just got started with PythonAnywhere. I have multiple web2py apps I'd
>>>> like to host there under the same web2py instance. However, I want
>>>> different domain names to point to them. Can I use the web2py routes.py to
>>>> do that, or is there a better way to handle it with pythonanywhere. Their
>>>> support didn't offer much for me.
>>>>
>>> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/h9WzRiLPCn4/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.