On 8 Aug 2012, at 2:13 PM, Paulo Junqueira da Costa <paulo.junque...@gmail.com> 
wrote:
> I just uploaded my first app do production under apache and following the 
> manual, I wrote a routes.py as follows:
> 
> routers = dict(
>   BASE  = dict(
>       default_application = 'vendasexpress',
>       default_controller = 'default',
>       default_function = 'index',
>       domains = {
>           'vendasexpress.com.br': 'vendasexpress',
>           'www.vendasexpress.com.br': 'vendasexpress',
>           'vendasexpress.rt1.webfactional.com': 'vendasexpress',
>           'admin.rt1.webfactional.com': 'admin',
>       }
>   ),
> )
> 
> But when I try vendasexpress.com.br or www.vendasexpress.com.br it point me 
> to http://vendasexpress.com.br/welcome/default/index.
> 
> If I click on register link, it goes to 
> http://vendasexpress.com.br/user/register and works! Some links are working 
> and some others not. I´m pretty confused on how the routing are going and how 
> to correct it.
> 
> The admin site (I created an https domais for it), works only if I go to 
> https://admin.rt1.webfactional.com/admin/default/site.
> 
> That´s our first web2py app in prod and we are in a hurry to finish it, so 
> any help will be appreciated.
> 

Have you restarted web2py since you installed routes.py (and is routes.py in 
the web2py root directory)? Your symptom (accessing the welcome app) suggests 
that the routes file isn't being loaded at all (or perhaps that it has a syntax 
error, though I don't see one above).

-- 



Reply via email to