applications = ['app1', 'app2'],
Change vps_ip for the ip of your server and app1 for the name of your application (folder name)
Thx
> 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.
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,
),
)
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4cdc72a0-de86-4850-915c-35a5f8eeafd9%40googlegroups.com.
<VirtualHost x.x.x.x:80>
Redirect 403 /
ErrorDocument 403 "Sorry, direct IP access not allowed."
DocumentRoot /dev/null
UseCanonicalName Off
</VirtualHost>
[host]
names = localhost:*, 127.0.0.1:*, *:*, *
>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.
I use Lets encrypt certificates and redirecting from 80 to 443, and I don't touch virtualhost file in port 80 so for sure, i'm doing something wrong with apache3 and for sure with host names in appconfig.ini[host]
names = localhost:*, 127.0.0.1:*, *:*, *
routers = dict(
#base router
BASE=dict(
#default_application='Target',
domains= {
'www.targetsoft.co.in' : 'Target',
'www.artpic.in' : 'artpic',
},
#default_application = 'Target',
applications=['Target', 'artpic', ],
default_fucntion = 'index',
),
Target = dict(
default_language = 'en',
languages = ['en'],
default_function = 'index',
),
artpic = dict(
default_language = 'en',
languages = ['en'],
default_function = 'index',
map_hyphen = True,
),
)
Regards,
Rahul
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3611fe72-085d-459b-97b4-e5ed4fb9d34e%40googlegroups.com.
[host]
names = subdomain:*
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/030d7db3-c097-4e97-82c8-55c0ae80b57d%40googlegroups.com.
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/e37f315e-0ae4-4f36-8f44-9dec2fcb3065%40googlegroups.com.
Hi Jose,Thank you !! That worked ... the point #4 resolved that issue. So now no need to work with Apache and all is working well. Thanks a million!!Regards,Rahul
On Fri, Aug 2, 2019 at 1:53 PM Jose C <houdini...@gmail.com> wrote:
--Hi Rahul,ok,..1) no the routes.examples.py files don't cause any problems.4) Can you make sure that both 'www.domain.in': 'app1' as well as 'domain.in': 'app1' are specified in the domains key of the BASE dict? I would hope this finally resolves your issue.I don't have any experience at all with Apache and if point 4) above doesn't resolve your issue then the Apache config is where I would be inclined to look. Unfortunately I'm unable to help you with that, sorry.Jose
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 web...@googlegroups.com.