On 22 Feb 2013, at 10:01 AM, greaneym <[email protected]> wrote: > Thank you. I've upgraded to v2.3.2 on the server and then tried two different > local routes.py > > I tried adding this routes.py in the app "ablog" directory > > routes_in = ( > ('/admin/$anything', '/admin/$anything'), > ('/appadmin/$anything', '/myapp/appadmin/$anything'), > ('/blog','/ablog/default/index') > ) > routes_out = ( > ('xxx-yyy.abc.com/ablog','/blog'), > ) > > but it doesn't work, it behaved as if the local routes.py wasn't > there. > > > also tried this > > routers = dict( > # base router > BASE = dict( > domains = { > "www.xxx.com" "home",
You're missing a colon above. > "xxx-yyy.abc.com" : "ablog" > }, > ), > > > ) > > and this gives an internal server error: > "The server encountered an internal error or misconfiguration and was unable > to complete your request. > > How do I add the unaliased domain name to a local routes.py file, please? > > thanks > > On Thursday, February 21, 2013 9:24:04 PM UTC-6, Massimo Di Pierro wrote: > Please do not use 2.0.x it was known to be buggy. Use 2.3.2 or nightly 2.4.0. > > On Thursday, 21 February 2013 16:55:19 UTC-6, greaneym wrote: > > Hello, > > using web2py v2.0.8 on a linux server. > > My server hosting my website has a name like xxx-yyy.abc.com. > An alias is set up on my domain server's host so that my site is www.xxx.com. > > The routes.py configuration I have is working, but I want to make a change > in order to use the server's ssl. > > If I type in https://xxx-yyy.abc.com/app1 I can see the anchor on the upper > right > hand corner of the page, and if clicked, it shows that the certificate is > good and matches. > > If I type in https://www.xxx.com/app1, the anchor is there, but it says the > certificate does not match, which I expected, but this doesn't matter because > this is just a landing page where logins,registrations are disabled. > > Is there a way to make a routes.py within the app2 directory that will map > to the https://xxx-yyy.abc.com/app2 so that the certificate matches > when the anchor is clicked? App2 is "ablog" in description below. > > From reading the list, I think I need a routes.py in the base directory and > this works ok. > > default_application = "ahome" > > routes_in = ( > ('/admin/$anything', '/admin/$anything'), > ('/appadmin/$anything', '/myapp/appadmin/$anything'), > ('/home','/ahome/default/index'), > ('/blog','/ablog/default/index') > ) > routes_out = [(x, y) for (y, x) in routes_in[:-2]]# > > > If I want the blog app to have the https capability using the ssl provided by > > https://xxx-yyy.abc.com/ablog, how do I set up the local routes.py in the blog > directory? > > I tried this, > > routes_in = ( > ( '/blog', '/ablog/default/index') > ) > routes_out = ( > ( 'xxx-yyy.abc.com/ablog', '/blog') > ) > > and reloaded the routes, but this causes a server error. > > I tried this in the routes.py in the blog app directory, > > domains = { "xxx-yyy.abc.com" " "ablog" } > > and this also got a server error. > > Could someone help me with a suggestion for a working routes.py that > essentially > maps the unaliased domain name to the app? > > thanks, > Margaret > > -- > -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

