routers = dict(
BASE = dict(
domains = {
'myapp.com' : 'myapp',
'admin.myapp.com' : 'admin',
'test.myapp.com' : 'testm',
},
default_application = 'myapp',
applications = ['myapp','admin','testm'],
controllers = 'DEFAULT',
map_static = True
),
myapp = dict(
functions = dict(
produkty = ['index'],
rozmiary = ['index'],
polityka = ['index'],
),
),
)
Hello,I ran into small problem.I have web2py 2.08 running nginx + postgres.I configured routes using parametric system.In routes.py I defined domains and assigned admin to seperate domain.By domain i mean actually subdomains...test.app.com -> testing environment using seperate dbapp.com -> official thingadmin.app.com -> admin for both apps and any other that may comeby....Problem is:Now I cannot access appadmin. (I have no uwsgi_log... just gateway timed out and have to restart server).
My routes.pyrouters = dict(
BASE = dict(
domains = {
'myapp.com' : 'myapp',
'admin.myapp.com' : 'admin',
'test.myapp.com' : 'testm',
},
default_application = 'myapp',
applications = ['myapp','admin','testm'],
controllers = 'DEFAULT',
map_static = True
),
myapp = dict(
functions = dict(
produkty = ['index'],
rozmiary = ['index'],
polityka = ['index'],
),
),
)
--
Apparently,I have two domains and there is no way for me to access admin.I get gateway timeouts.
on logging I get permission denied
W dniu poniedziałek, 10 września 2012 01:27:02 UTC+2 użytkownik Marek Mollin napisał:
Apparently,I have to domains there is no way for me to access admin.I get gateway timeouts.
W dniu poniedziałek, 10 września 2012 01:27:02 UTC+2 użytkownik Marek Mollin napisał:
--
routers = dict(
BASE = dict(
domains = {
'myapp.com' : 'myapp1',
'test.myapp.com' : 'myapp2',
}
),
)
logging = 'debug'Error opening file for reading: Permission deniedSo i have cut down the router to bare minimum, just to check this admin issue.I now have:routers = dict( BASE = dict( domains = { 'myapp.com' : 'myapp1', 'test.myapp.com' : 'myapp2', } ), ) logging = 'debug'after tailing the uwsgi_log i get:in case of https://myapp.com/admin:Error opening file for reading: Permission deniedand afterwards a few 404.just a few 404.If I turn off the domains and just set default app, everything is fine.Admin is accessible.
--
So i have cut down the router to bare minimum, just to check this admin issue.I now have:routers = dict( BASE = dict( domains = { 'myapp.com' : 'myapp1', 'test.myapp.com' : 'myapp2', } ), ) logging = 'debug'after tailing the uwsgi_log i get:in case of https://myapp.com/admin:Error opening file for reading: Permission deniedand afterwards a few 404.just a few 404.If I turn off the domains and just set default app, everything is fine.Admin is accessible.
"We be rollin" ;]It works perfectly so far. Both admin and appadmin.Relocating admin doesnt work but its no big deal I guess.
Thanks a million!
W dniu wtorek, 11 września 2012 18:36:12 UTC+2 użytkownik Jonathan Lundell napisał:On 10 Sep 2012, at 9:02 AM, Marek Mollin <rog...@gmail.com> wrote:So i have cut down the router to bare minimum, just to check this admin issue.I now have:routers = dict( BASE = dict( domains = { 'myapp.com' : 'myapp1', 'test.myapp.com' : 'myapp2', } ), ) logging = 'debug'after tailing the uwsgi_log i get:in case of https://myapp.com/admin:Error opening file for reading: Permission deniedand afterwards a few 404.just a few 404.If I turn off the domains and just set default app, everything is fine.Admin is accessible.There's a fix (I think) in the trunk for this problem. I'm not sure it's 100% fixed; if you try it out, please let me know.
--
Checked again with restarting entire server and it seems fine.Redirects to admin just fine:small problem starts when you enter particular's app appadmin it goes under url: admin.myapp.com/myapp/appadmin
and css goes a bit wierd: