You are not logged in Log in Join
You are here: Home » Members » rbickers » SSLAbsoluteURL

Log in
Name

Password

 
 

Folder icon SSLAbsoluteURL

This product changes the behavior of absolute_url() so that it looks for a boolean property called SSL and changes the http prefix to https if it is set, or https to http if it is not set. The property is acquired, so if you want an entire tree to be SSL protected, a single SSL property in the top folder will do the job.

If the boolean property SSLForceOn is set on, all acquired SSL settings are ignored and all URL references will use SSL (https). If the boolean property SSLForceOff is set on, all acquired SSL settings are ignored and all URL references will use non-SSL (http).

This is useful for supporting secure pages for browsers, and unsecured pages for devices that don't support SSL (such as mobile phones) with the same Zope tree. For example:

  • Root Folder Secure has SSL=1 - Root Folder Mobile has SSLForceOff=1

When Folder Secure is accessed as /Secure, URLs use SSL, but when accessed as /Moblile/Secure, URLs will be forced to non-SSL. The content of Secure is acquired, but the SSLForceOff setting in Mobile overrides the SSL setting in Secure.

This product only works with Zope later than 2.2. The latest version tested is 2.3.2.

See How-To: Managing http/https URL Links for more info.

 Title   Type   Size   Modified   Status 
 SSLAbsoluteURL Edit object Software Release   2001-01-23 published
 SSLAbsoluteURL Edit object Software Release   2001-05-30 published