Problem to configure zone ssl access

Author Message

Jean-François Sénéchal

Wednesday 20 September 2006 6:13:41 am

Hello,

I configure in my site.ini ssl zones

With the example who is explain in the documentation :

ModuleViewAccessMode[user/login]=ssl

the browser will switch from http to https

But if I try with a folder create im my content

for example, tourisme

ModuleViewAccessMode[content/tourisme]=ssl

the browser doesn't switch to https

I try too with this config :

ModuleViewAccessMode[tourisme]=ssl

Here is a capture of my content structure :

http://www.marche.be/ez.html

I use ez 3.8.3

What's wrong ?

Thanks

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Dimitar Christoff

Thursday 23 November 2006 3:16:36 am

i can confirm that...

cannot force eZ to swap to SSL on:

ModuleViewAccessMode[article]=ssl,
ModuleViewAccessMode[folder]=ssl,
ModuleViewAccessMode[[urlRedirect]=ssl
or ModuleViewAccessMode[content/view/full/nodeid]=ssl - all fail.

for example, ModuleViewAccessMode[contact_us]=ssl fails
ModuleViewAccessMode[contact_us]=keep fails also

despite of having [content/*]=keep, accessing https://url/contact_us directly gets rewritten to http://url/contact_us

any progress on this and is the official documentation of SSLzones forthcoming?

thanks

VisionWT

Valentin Doroschuk

Monday 30 April 2007 12:59:54 am

Hi,
Actually we didn't find a bug there.

0. The first you should clear ssl cache (var/[siteaccess]/cache/ssl_zones_cache.php)

1. You can use ssl for subtrees only (not for nodes) and (at present) there is no way to use ssl only for page where node doesn't have a path_indetification_string (means empty),
i.e. node with nodeID 2 doesn't have a path_indetification_string and you cannot use it with ssl,
so if default page is content/view/full/2 you cannot use this subtree with ssl.
If you want to use all view pages like "https" please use ModuleViewAccessMode[content/view]=ssl

(it will be the same like you use SSLSubtrees[]=[path_indetification_string of Node with nodeID =2])

2.
If you use SSLSubtrees[]=/contact_us then http://yourhost/contact_us will be always redirected to https

3. In SSLSubtrees[] you cannot use a path_string, but path_indetification_string only
4. ModuleViewAccessMode[] should contain module/view only,
like

ModuleViewAccessMode[shop/add]=ssl
ModuleViewAccessMode[shop/basket]=ssl
ModuleViewAccessMode[content/*]=keep

So, your settings should be like this

[SSLZoneSettings]
SSLZones=enabled
SSLSubtrees[]=/contact_us

ModuleViewAccessMode[shop/add]=ssl
ModuleViewAccessMode[user/register]=ssl
ModuleViewAccessMode[shop/checkout]=ssl
ModuleViewAccessMode[user/login]=ssl
ModuleViewAccessMode[shop/basket]=ssl
ModuleViewAccessMode[user/profile]=ssl
ModuleViewAccessMode[user/editchilddetails]=ssl
ModuleViewAccessMode[user/password]=ssl
ModuleViewAccessMode[shop/confirmorder]=ssl
ModuleViewAccessMode[content/*]=keep

Thanks.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:11:16
Script start
Timing: Jan 18 2025 16:11:16
Module start 'layout'
Timing: Jan 18 2025 16:11:16
Module start 'content'
Timing: Jan 18 2025 16:11:16
Module end 'content'
Timing: Jan 18 2025 16:11:16
Script end

Main resources:

Total runtime0.0181 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1484152.6406
Module start 'layout' 0.00570.0029 741.789139.4766
Module start 'content' 0.00860.0074 781.265693.4609
Module end 'content' 0.01600.0020 874.726634.3047
Script end 0.0180  909.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.2972140.0002
Check MTime0.00115.8147140.0001
Mysql Total
Database connection0.00074.040110.0007
Mysqli_queries0.002614.484630.0009
Looping result0.00000.083110.0000
Template Total0.00169.010.0016
Template load0.00084.610010.0008
Template processing0.00084.388410.0008
Override
Cache load0.00063.109910.0006
General
dbfile0.00021.221880.0000
String conversion0.00000.043540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs