Re: [Zope] SSL + ProxyPass + Zope question...
<dtml-if "URL[:5] == 'http:'"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if>
When I now want: <dtml-if "Zope-Management-Interface"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if> What will I have to put in the part "Zope-Management-Interface"? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
This is untested, but something like this might do what you want: <dtml-if expr="_.string.find(URL, '/manage') > -1"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if> HTH, Eric.
-----Original Message----- From: Stephan Goeldi [mailto:stephan_goeldi@hotmail.com] Sent: Monday, August 06, 2001 12:06 PM To: steve@spvi.com; eric@walstads.net Cc: zope@zope.org Subject: Re: [Zope] SSL + ProxyPass + Zope question...
<dtml-if "URL[:5] == 'http:'"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if>
When I now want:
<dtml-if "Zope-Management-Interface"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if>
What will I have to put in the part "Zope-Management-Interface"?
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
This is untested, but something like this might do what you want:
<dtml-if expr="_.string.find(URL, '/manage') > -1"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if>
Interesting. Where do I have to place it?
Hmmm again an access rule might be better (since it would fire during traversal.. ). The *convention* is that management functions start with 'manage' so you could check PATH for 'manage', but what if someone makes a document called 'management_style.html' ? I'm not sure there's a good way for that. Maybe you could hack manage_tabs ;-) -steve On Monday, August 6, 2001, at 07:05 PM, Stephan Goeldi wrote:
<dtml-if "URL[:5] == 'http:'"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if>
When I now want:
<dtml-if "Zope-Management-Interface"> <dtml-call "RESPONSE.redirect('https:' + URL[5:])"> <dtml-return "'REDIRECTING.. to secure port.. '"> </dtml-if>
What will I have to put in the part "Zope-Management-Interface"?
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
participants (4)
-
Eric Walstad -
Stephan Goeldi -
Stephan Göldi -
Steve Spicklemire