thanks niphlod, I am not being very clear I guess. On the openshift server, I do have access to the shared ssl, and when some apps are defined in the routes.py as the default application, I can view the lock icon when https is invoked, or when it is called if defined in a model file. But with the app that I want to use, when I define that app as the default application, then the icon is loaded but immediately goes away. This makes me think that there is some configuration in my app, maybe in the auth settings? that causes this to happen.
I have tried several routes.py files to test. The most recent one was a modification of one given to me by another very helpful web2py user, Andrew. It looks like this: default_application = 'blog' # ordinarily set in base routes.py default_controller = 'default' # ordinarily set in app-specific routes.py default_function = 'index' # ordinarily set in app-specific routes.py routes_app = ((r'/(?P<app>blog|admin|app)\b.*', r'\g<app>'), (r'(.*)', r'myapp'), (r'/?(.*)', r'myapp')) for example. It's really another app I am testing but this is the example. With this loaded, the icon shows up when https is invoked. As soon as I change to the app I want, the icon goes away. (I am reloading routes.py inbetween tries). I don't think it is the routes.py that is causing the problem. I think it's something in the app config files. Do you have any suggestions for what else to look for? Can I set up logging to see something like this? thanks On Sunday, February 24, 2013 6:10:31 PM UTC-6, Niphlod wrote: > > "the lock" is not web2py nor css nor html dependant. "the lock" shows when > your connection is secured by ssl, usually accessing the page as https://, > but you have to configure correctly ssl protection on the webserver > (apache, lighttpd, nginx, etc) > > On Sunday, February 24, 2013 10:35:43 PM UTC+1, greaneym wrote: >> >> still learning about routes. >> >> on a linux install with v2.3.2, python2.6 and this routes.py, with the >> admin >> welcome, examples apps installed. >> >> I modified the models/menu.py so that https is turned on, >> by adding this at the top: >> >> session.secure() >> if not request.is_https: >> redirect('https://%s/%s' % (request.env.http_host, >> request.application)) >> >> >> then using this routes.py >> >> # Example: support welcome, admin, app and myapp, with myapp the default: >> >> routers = dict( >> >> # base router >> BASE=dict( >> default_application='examples', >> ), >> ) >> >> when the domain page is loaded, I see the examples page and https is >> shown in the url path, but now I don't see the >> lock icon in the upper right hand corner of the page. What is controlling >> this? >> Is it css or python controller/model file, or something else? What shuts >> this off? >> >> When there is no routes.py, and the welcome page loads, I do see the lock >> icon >> on the page, which allows me to view the certificate if I want. >> >> How do I get the lock icon to appear on the default application with >> https enabled? >> >> thanks >> >> -- --- 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. For more options, visit https://groups.google.com/groups/opt_out.