On 25 Oct 2013, at 9:18 AM, António Ramos <[email protected]> wrote:

> yes i reload the routes on every change to routes.py
> 
> but how do i route to previnil app when i write http://www.previnil.pt ???
> 
> I have my 2 dns pointing to my web2py server (www.cires.pt and 
> www.previnil.pt)

I'm about to be offline for most of the day, so won't be responding later.

Make sure you can route to the previnil app *somehow* first.

Then you might want to turn on logging for routes; that might help to see 
what's going on. And look at web2py's view of the incoming URL to make sure 
it's what you think it is (display a dump of request.env, for example).

> 
> 
> 
> 2013/10/25 Jonathan Lundell <[email protected]>
> On 25 Oct 2013, at 8:29 AM, António Ramos <[email protected]> wrote:
> 
>> yes
>>  with the bold line commented out i stil go to welcome when i write in my 
>> browser http://www.previnil.pt
>> 
>> is that because welcome is the default app? 
> 
> It is, yes, so not a great path to use for testing.
> 
> Keep in mind that you should be restarting web2py when you make a change to 
> routes.py; in general it only reads the file on startup.
> 
>> 
>> 
>> 
>> 2013/10/25 Jonathan Lundell <[email protected]>
>> On 25 Oct 2013, at 8:04 AM, António Ramos <[email protected]> wrote:
>> 
>>> routes_in = (
>>>     (r'.*?:https?://www\.cires\.pt:.* /$anything', r'/welcome/$anything'),
>>>     (r'.*?:https?://www\.previnil\.pt:.* /$anything', 
>>> r'/previnil/$anything'),
>>>     (r'.*?:https?://apps\.cires\.pt:.* /empre/$anything', 
>>> r'/empre/$anything'),
>>>     (r'.*?:https?://apps\.cires\.pt:.* /erp/$anything', r'/erp/$anything')
>>> )
>>> 
>>> the bold route does not route to previnil app but to welcome!!!
>>> 
>>> Why?
>>> 
>> 
>> Not sure. Can you get to previnil OK with routing off?
>> 
>> -- 
>> 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 [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>> 
>> 
>> -- 
>> 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 [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to