Hi Jose, Have you removed welcome application from web2py applications folder or it still resides there but when accessed gives 404? I am using python 2.7.13 . I will try your settings for routes and get back to you.
In the meantime you may access the sites here that I referred to - 1. www.targetsoft.co.in - is linked with app1 2. www.artpic.in is linked with app2 ( Just set-it-up yesterday but work remains to be done for a production launch) Regards, Rahul On Thu, Aug 1, 2019 at 12:56 PM Jose C <houdinihoun...@gmail.com> wrote: > > I added the line in routes.py - While it restricts allowing >> access to other applications like welcome it does not restrict >> redirection - so in my case it still redirected to welcome application >> mentioning something is wrong message. >> >> Odd. I have a similar setup to you with multiple domains, 2.18.5, py3 > using rocket server. If I do not place 'welcome' in the 'allowed_apps' > any attempt to get to any page on the welcome app returns a 404 (as > expected). > One thing that may be different... I have additional parameters in > routes.py which specifies the default for each app... perhaps in the > absence of this it tries to go back to 'welcome'? > > routers = dict( > # base router > BASE = dict( > domains={'domain1.com' : 'app1', > 'domain2.com' : 'app2', > }, > default_application = 'app1', > applications = ['app1', 'app2'], > default_function = 'home', > ), > app1 = dict( > default_language = 'en', > languages = ['en'], > default_function = 'home', > ), > app2 = dict( > default_language = 'en', > languages = ['en'], > default_function = 'index', > map_hyphen = True, > ), > > > ) > > Paco: Surely appconfig.ini should never be reachable via the url due to > the security risks of allowing access to config info? I paniced for a sec > and tried accessing mine with a link like yours but get 404 (as expected). > Are you saying you can see your appconfig.ini, without specifically doing > something to expose it, by simply accessing a link the way you formatted > it? > > > -- > 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/4cdc72a0-de86-4850-915c-35a5f8eeafd9%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/4cdc72a0-de86-4850-915c-35a5f8eeafd9%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%2B6uMjdusvvrEbkFNv68aXVxcP-RdTdMP-9onkReXd2MEpY4Tg%40mail.gmail.com.