Hi Jose,
        Thanks for getting back - I am using nano for editing routes.py in
the live server, it isn't so friendly but gets the job done. Might be one
of the reasons for my typo - Here are the answers to rest of the questions
-

1) First of all, can you confirm this is a routes.py file in the web2py
root directory and that there are not any routes.py (app-specific routers)
files present in the app directories as well (that could be overriding the
main routes.py)?
[Rahul] There exists a *routes.example.py <http://routes.example.py>*  (not
routes.py) in every application folder - It also exists in web2py\ folder.
Do I need to delete it ? Does it cause issues?

2) The config I posted is my live config (other then changing domain names
and apps to make it easier to read).  It routes to the relevant apps based
on the domains as expected, even with the one app set as default.
[Rahul]Okay it routes for me tool

3) Also in the routes.py code you posted, the default_function key is
misspelt as default_*fucn*tion, which would mean it is ignored (although I
think web2py looks for 'index' anyway if none specified, but am not 100%
certain).
[Rahul] Yes I rectified that issue yesterday itself as I gave error when
accessing sites

4) Not sure about the www part.  I have a frontend redirect for my www.
domains to the normal domain.  But, what if you specify www.domain.com as
well as domain.com going to 'app1'.  Haven't tested this but would expect
it to work.
[Rahul] If I dont specify www part it redirects to /welcome saying "The
page isn’t redirecting properly"

5) Earlier I accessed both your sites at site.in/welcome and was served the
welcome app.  Now I retried and get the expected error message that it is
invalid.  Not sure if that helps.
[Rahul] This helps but still would need a cleaner way to have access to the
app mentioned only

6) Critical... you must restart the server for any change you make to
routes.py to come into effect.  Not sure if you saw this on the last post.
[Rahul] Yes this was done for every change I did.. I restarted Apache after
changes to routes.py to reload it.


Regards,

Rahul


On Fri, Aug 2, 2019 at 12:05 AM Jose C <houdinihoun...@gmail.com> wrote:

> Strange...
>
> 1) First of all, can you confirm this is a routes.py file in the web2py
> root directory and that there are not any routes.py (app-specific routers)
> files present in the app directories as well (that could be overriding the
> main routes.py)?
>
> 2) The config I posted is my live config (other then changing domain names
> and apps to make it easier to read).  It routes to the relevant apps based
> on the domains as expected, even with the one app set as default.
>
> 3) Also in the routes.py code you posted, the default_function key is
> misspelt as default_*fucn*tion, which would mean it is ignored (although
> I think web2py looks for 'index' anyway if none specified, but am not 100%
> certain).
>
> 4) Not sure about the www part.  I have a frontend redirect for my www.
> domains to the normal domain.  But, what if you specify www.domain.com as
> well as domain.com going to 'app1'.  Haven't tested this but would expect
> it to work.
>
> 5) Earlier I accessed both your sites at site.in/welcome and was served
> the welcome app.  Now I retried and get the expected error message that it
> is invalid.  Not sure if that helps.
>
> 6) Critical... you must restart the server for any change you make to
> routes.py to come into effect.  Not sure if you saw this on the last post.
>
>
>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/lvOxb_mb6kQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/030d7db3-c097-4e97-82c8-55c0ae80b57d%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/030d7db3-c097-4e97-82c8-55c0ae80b57d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CA%2B6uMjcFxKk5mE6nHgFqzcFD1byfYPbebTJk3X0W-b8Uo0vHEw%40mail.gmail.com.

Reply via email to