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.


Reply via email to